Closed alexpi closed 3 years ago
The problem was indeed that PHP's memory size was not sufficient. Sorry!
It worked once after increasing memory, but I am getting the error again. I am using the 8df5d40
commit.
Hey @alexpi,
I’m sorry, I can’t reproduce your issue.
Here are a few things you can try.
paymentIntentId
sometime before shop-api/submit
is called?
$paymentIntent = $cart->getStripePaymentIntent($params);
kirby()->session()->set('paymentIntentId', $paymentIntent->id);
site/sessions/
.It was my mistake after all. I was adding a shipping product, and instead of adding its id
, to the cart, I was sending the whole shipping product file. Sorry for the trouble and thanks for your help!
I am trying to integrate Stripe payments with Merx. I used the exact same code from the example at https://merx.wagnerwagner.de/cookbooks/checkout-with-stripe-s-payment-intents, but as soon as the initializePayment() function is called, the error "Allowed memory size of 134217728 bytes exhausted (tried to allocate 143360 bytes)", is returned. Am I missing something?