braintree / braintree_php

Braintree PHP library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
546 stars 224 forks source link

Handling Multiple Currencies #261

Closed girishkc closed 4 years ago

girishkc commented 4 years ago

Option 1: Create 2 different accounts. One for USD and another for CAD

Option 2: Create one account with 2 merchant accounts, one with USD and another with CAD. Now

I have to bill the card issued in Canada in CAD and all other cards in USD. Is there any way to get the card issued country before submitting the encrypted string to Braintree? If not, I may have to

Are there any better ways to handle this..?

Thanks,

crookedneighbor commented 4 years ago

You can use the payment method nonce find method to look up the details of the nonce: https://developers.braintreepayments.com/reference/request/payment-method-nonce/find/php

On the resulting object is a country of issuance field, which will tell you the country it was issued in if it is known: https://developers.braintreepayments.com/reference/response/payment-method-nonce/php#bin_data.country_of_issuance

Option 2 is the preferred route, I believe. Please contact our support team for help with your integration: https://help.braintreepayments.com/