Plugin: file missing for Fix Stripe process to work with new API version 2022-11-15 - refs BT#20856

pull/4808/head
NicoDucou 3 years ago
parent 8d39404968
commit 4b5402edd3
  1. 6
      plugin/buycourses/src/stripe_response.php

@ -28,10 +28,10 @@ try {
}
switch ($event->type) {
case 'payment_intent.succeeded':
$paymentIntent = $event->data->object;
case 'checkout.session.completed':
$checkoutSession = $event->data->object;
$sale = $plugin->getSaleFromReference($paymentIntent->id);
$sale = $plugin->getSaleFromReference($checkoutSession->id);
if (empty($sale)) {
api_not_allowed(true);

Loading…
Cancel
Save