#nico-charge-sca

1 messages · Page 1 of 1 (latest)

past lanternBOT
pseudo flume
#

Hey nico what's your question?

#

@peak nova please talk here instead (I deleted your message in the main channel)

peak nova
#

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)

pseudo flume
#

nico-charge-sca

peak nova
#

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?

pseudo flume
peak nova
#

thank you for your answer again. I'll search. apparently payment intent will work for me, but it seems long to implement. I already implemented checkout for another client, but this one doesn't want a separate site to make the payment.

#

thank you

#

have a nice day