0

I have implemented stripe payment using php. The base currency is Euro. how can i add option to allow the user to pay in another currencies

$charge = \Stripe\Charge::create(array(
"amount" => $amount, 
"currency" => "eur", 
"source" => $source,
"customer" => "cus_BpES3vz708LAn3"
"description" => $description 
));

many thanks

SHENE
  • 196
  • 1
  • 10

1 Answers1

1

Stripe can process charges in basically any currency you want, but at the moment it does not have an API for converting amounts. It'd be up to you to compute the converted amount, e.g. using a third-party API, and pass the correct amount and currency parameters to Stripe when creating the charge.

Ywain
  • 16,854
  • 4
  • 51
  • 67