1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Update Wyre ETH purchase url (#8051)

* Revert "Revert "Update Wyre ETH purchase url" (#7631)"

This reverts commit bc67d1eeca.

* Restrict widget to just debit card payments

Apple Pay apparently only works on Safari.
This commit is contained in:
Mark Stacey 2020-02-14 18:07:24 -04:00
parent bca4594f0a
commit abdc3c5626
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ function getBuyEthUrl ({ network, amount, address, service }) {
switch (service) {
case 'wyre':
return `https://dash.sendwyre.com/sign-up`
return `https://pay.sendwyre.com/?dest=ethereum:${address}&destCurrency=ETH&accountId=AC-7AG3W4XH4N2&paymentMethod=debit-card`
case 'coinswitch':
return `https://metamask.coinswitch.co/?address=${address}&to=eth`
case 'coinbase':

View File

@ -20,7 +20,7 @@ describe('buy-eth-url', function () {
it('returns coinbase url with amount and address for network 1', function () {
const wyreUrl = getBuyEthUrl(mainnet)
assert.equal(wyreUrl, 'https://dash.sendwyre.com/sign-up')
assert.equal(wyreUrl, 'https://pay.sendwyre.com/?dest=ethereum:0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc&destCurrency=ETH&accountId=AC-7AG3W4XH4N2&paymentMethod=debit-card')
})