Workflow issue with Stripe sandbox

  • Didier BRETTENACHER
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 5 days ago #120830 by Didier BRETTENACHER
Workflow issue with Stripe sandbox was created by Didier BRETTENACHER
Hello,
My workflow works perfectly with offline payments.
I test the payment with Stripe, in sandbox mode and there the workflow is blocked without generating errors:
- After validation of the form, I have the right message on the site.
- Stripe confirms to me that the payment is accepted.
- In MembershipPro, I see the new membership with status on Active, but there is no invoice.
- As a customer I do not receive any email.
Someone would have any idea ?
thanks in advance

Please Log in or Create an account to join the conversation.

More
2 weeks 5 days ago #120831 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Workflow issue with Stripe sandbox
Hello

You missed one step: Configure Stripe Webhook as states in the readme.txt file in the payment plugin:

If you use recurring subscription plans, you will need to login to your Stripe account, add a "Webhook URL" below:

domain.com/index.php?option=com_osmember...ent_method=os_stripe

(Of course, need to replace domain.com/ with your website url)


Please do that, then try again and let us know the result

Tuan

Please Log in or Create an account to join the conversation.

  • Didier BRETTENACHER
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 5 days ago #120832 by Didier BRETTENACHER
Replied by Didier BRETTENACHER on topic Workflow issue with Stripe sandbox
Hello Tuan,
Thank-you for your quick reply !

I just tested and it works. However, I have 2 questions:
1. Now the invoice appears in MembershipPro, and, as a customer, I receive the thank you e-mail but not the Joomla account activation email.
2. I do not use a recurring subscription, so will this method not create a problem for my customers?

Please Log in or Create an account to join the conversation.

More
2 weeks 5 days ago #120833 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Workflow issue with Stripe sandbox
Hi Didier

1. Could you please go to Membership Pro -> Configuration, make sure you set Send Activation Emails config option to Yes?

2. No, it won't cause any problem

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Didier BRETTENACHER
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 5 days ago #120835 by Didier BRETTENACHER
Replied by Didier BRETTENACHER on topic Workflow issue with Stripe sandbox
In configuration, the Send Activation option is on NO, and Auto Login is on YES.
This rule work fine for outline subscribers, when I validated the subscription they received 2 e-mails (Thank-you message with billing and Joomla account).

Please Log in or Create an account to join the conversation.

More
2 weeks 4 days ago #120869 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Workflow issue with Stripe sandbox
Hello Didier

If you set Send Activation Emails config option to No, the system won't send activation email and it's expected behavior. You still want users to activate their account manually after making payment?

If so, you will need to set Send Activation Emails config option to Yes and set Auto Login to No

The reason is enable when you enable Auto Login, user will be logged in automatically but Joomla prevents logged in user from validating account.

Please do that and let us know if you need assist

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Didier BRETTENACHER
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 4 days ago #120871 by Didier BRETTENACHER
Replied by Didier BRETTENACHER on topic Workflow issue with Stripe sandbox
Hello Tuan,
Thank you for your responses and your help.
I just tested with the following options:
Send an activation email: YES
Auto Login: NO
As an administrator I can see the new user account that is not activated.
As a customer, I receive 2 emails, including the activation email. When I click on the activation link, I get a 403 error.
In Joomla user account option, the activation account option is on auto activation.

Please Log in or Create an account to join the conversation.

  • Didier BRETTENACHER
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 4 days ago #120872 by Didier BRETTENACHER
Replied by Didier BRETTENACHER on topic Workflow issue with Stripe sandbox
I just tested a new setting that does not generate a 403 error:
Send activation email: NO
Auto login: NO
It works: the account is created and activated after payment.
However, I would like the user to receive an email with their username and password (New User Details email). This is the current operation for offline payments.

Please Log in or Create an account to join the conversation.

More
2 weeks 4 days ago #120873 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Workflow issue with Stripe sandbox
I believe you get 403 error because user registration is disabled on your site.Go to Users -> Manage, click on Options button in the toolbar, set Allow User Registration to Yes, then try again

The error should be gone

Tuan

Please Log in or Create an account to join the conversation.

  • Didier BRETTENACHER
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 4 days ago #120891 by Didier BRETTENACHER
Replied by Didier BRETTENACHER on topic Workflow issue with Stripe sandbox
Your solution is perfect, everything works now.
Many thanks for your help and support.
Have a good day !

Please Log in or Create an account to join the conversation.