#nico-charge-sca
1 messages · Page 1 of 1 (latest)
Hey nico what's your question?
@peak nova please talk here instead (I deleted your message in the main channel)
ok thank you
Hello, I am a programmer who is creating a payment system for the lafrabrique du net site and I have a problem because I understand that the following payment system has not been authorized in European legislation since 2019.
it's this system (in PHP):
try {
$charge = \Stripe\Charge::create([
'amount' => $amount_in_cents,
'currency' => 'eur',
'customer' => $customer_id,
'description' => 'Payment via Stripe'
]);
// The payment have been done successfully
task to do when paid
$response = array(
"successful" => 'successful',
);
echo json_encode($response);
} catch (\Stripe\Exception\ApiErrorException $e) {
// an error occurred
$response = array(
"successful" => 'error',
"error message" => "Payment error: " . $e->getMessage()
);
echo json_encode($response);
}
can you confirm that this payment system is no longer authorized since 2019?
does \Stripe\Charge::create still allowed?
is \Stripe\Charge::create still allowed? (sorry formy poor english)
nico-charge-sca
Okay so in Europe there are regulations that happened in 2019 called SCA that require extra steps like 3D Secure. More details on https://stripe.com/docs/strong-customer-authentication
So yes if you are based in Europe you need to migrate to a newer integration called the PaymentIntents API. See https://stripe.com/docs/payments/payment-intents/migration
yes indeed the business is about europe, it's in France, thank you for your answer.
Which stripe payment system should I use instead, knowing that I absolutely want the credit card number to be saved and the site to be able to absolutely recover the credit card number from a previous stripe subscription made on the same site?
It's really hard to say. We have numerous products that you can integrate and it depends on a lot of factors. But really the easiest solution is to use Checkout: https://stripe.com/docs/payments/checkout