Stripe issues

Hi Una community,

Please help. I can't manage to set up Stripe correctly. I created a product in Stripe with all the prices that correspond to the prices in Paid Levels, used the Price IDs as Names so eventually the checkout page started to work and I tried to test a subscription. I successfully added my card details and clicked on Subscribe, the Subscribe button turned green and I got redirected to https://keenston.com/m/payment/finalize_checkout/stripe_v3/2?order_id=sub_1JmlCKLDlSamRPLZ6SqhpADN&customer_id=cus_KReVfLFxOyhcov&pending_id=32&redirect= seeing the HTTP ERROR 500. However, Stripe does see my payment and has a new subscription from one of my website's users. But this user doesn't get to change his level from Standard to Premium on my website. 

Tried adding 


SecRuleEngine Off

to studio/.htaccess file as described in https://una.io/page/view-discussion?id=7985 but it didn't work.

these are the errors from the error log:

[Wed Oct 20 22:33:03.130910 2021] [php7:notice] [pid 28412] [client 91.215.89.198:59988] Stripe Notice: Undefined property of Stripe\\Customer instance: subscriptions, referer: https://checkout.stripe.com/

[Wed Oct 20 22:33:03.131395 2021] [php7:error] [pid 28412] [client 91.215.89.198:59988] PHP Fatal error:  Uncaught Error: Call to a member function retrieve() on null in /var/www/www-root/data/www/keenston.com/modules/boonex/payment/classes/BxPaymentProviderStripeBasic.php:394\nStack trace:\n#0 /var/www/www-root/data/www/keenston.com/modules/boonex/payment/classes/BxPaymentProviderStripeV3.php(169): BxPaymentProviderStripeBasic->_retrieveSubscription('cus_KRdo6UCqvIG...', 'sub_1JmkWxLDlSa...')\n#1 /var/www/www-root/data/www/keenston.com/modules/boonex/payment/classes/BxPaymentModule.php(857): BxPaymentProviderStripeV3->finalizeCheckout(Array)\n#2 /var/www/www-root/data/www/keenston.com/inc/classes/BxDolRequest.php(129): BxPaymentModule->actionFinalizeCheckout('stripe_v3', '2')\n#3 /var/www/www-root/data/www/keenston.com/inc/classes/BxDolRequest.php(41): BxDolRequest::_perform(Array, 'BxPaymentModule', 'actionFinalizeC...', Array)\n#4 /var/www/www-root/data/www/keenston.com/modules/boonex/payment/request.php(16): BxDolRequest::processAsAction(Array, Array)\n#5 /var/www/www-root/data/www/keenston.com/modules/index.php(24) in /var/www/www-root/data/www/keenston.com/modules/boonex/payment/classes/BxPaymentProviderStripeBasic.php on line 394, referer: https://checkout.stripe.com/

Please let me know what else I can try..

  • 1387
  • More
Attachments
Replies (12)
    Login or Join to comment.