•  · 4 friends

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] 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] 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..

πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
  • 246
  • More
Replies (12)
    • Hello Alex Z !

      It seems is connected with this problem https://github.com/unaio/una/issues/3534

      πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
      • Hi LeonidS ,Β 

        Thanks for the information. Looks like the issue is closed, does it mean that stripe should start working ? What should I do on my side?

        πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
        • And I do have a pre-created product in Stripe with all the prices corresponding to the prices in Paid Levels

          πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
          • No, it means that issue was fixed for the future 13 version. Or you need to apply all 4 code changes by yourself.

            πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
            • LeonidS , did all the changes according to https://github.com/unaio/una/issues/3534

              Seems to be working now.. thanks a lot!

              the email confirmation didn't get sent though after the subscription, but perhaps that's a different problem

              πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
              • Glad that helped! Well, the Market module doesn't send any further messages after the successful payment. It is possible to do on the payment provider's side.

                πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                • Hmmm. We are using stripe subscriptions big time without any problems and have done that for years

                  πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                  • Thanks for reporting this issue Alex Z. Also thanks to the UNA Team for the solution. I am also planning to use Stripe, so I will also manually apply this fix. Thx

                    πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                    • Hello EducatedSingles !

                      Well, it seems you are using the first Stripe integration. But some issues have appeared in the Stripe with 3D security tool.

                      πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                      • I have also problems with my stripe checkout function. I defined some additional payment methods like direct payment from the users bank account, which I cannot see on the checkout page. Everything seems to work from the stripe-side, but I only see card payment option and none of the additional payment options I defined in Stripe. Is that due to that issue you mentioned and will it be fixed in UNA 13? By the way, I still cannot update to a Alpha versions, it keeps on corrupting my test server and gets into maintainance mode as soon as I update. Tried that two times and will now wait for the stable release of 13. Cheers, thomlin

                        πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                        • Well, it looks like smth wasn't activated on Stripe's side because UNA integration just only provides the price and title of the paid item. About UNA 13 issues - you need to apply this solution https://una.io/page/cmts-view?sys=bx_forum&id=8842&cmt_id=38029

                          πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                          • Stripe is working and the API-call seems to work, as well. Price and item are forwarded. But, on the first picture, this is waht Stripe thinks, I should see, including all the different payment options. And on the second picture is what my checkout page shows. Any ideas?

                            πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                            Not logged in users can't 'Comments Post'.

                            UNA - Network Infrastructure for Communities