- Posts: 9
- Thank you received: 0
Please post all pre-sales questions of all products on this forum
status pending after successful payment
- Kate
- Topic Author
- Offline
- New Member
-
Less
More
9 years 2 months ago #77370
by Kate
status pending after successful payment was created by Kate
Hi
I have a custom written payment plugin and it all works well except that the status of the subscription is always 'pending', not active. Any ideas where to start looking for help on this. I can't find anything in the documentation.
I have a custom written payment plugin and it all works well except that the status of the subscription is always 'pending', not active. Any ideas where to start looking for help on this. I can't find anything in the documentation.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 2 months ago #77388
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic status pending after successful payment
Hi Kate
It is difficult to guide you to develop it as it depends on the payment gateway you are using
Basically, after payment completed, the payment gateway usually sends notification back to your site to inform about the payment. You need to set that notification URL to domain.com/index.php?option=com_osmember..._payment_plugin_name
- domain.com need to be replaced with your site domain
- os_payment_plugin_name needs to be replaced with the name of the payment plugin you are developing (for example, os_paypal_
When the gateway notify the system about the payment to that url, Membership pro will call the verifyPayment method of the payment plugin (look at os_paypal.php for an exaple)
In that method, you will need to validate payment, if it is valid, you can update status of subscription record, sending emails......
That's the logic about the payment notification process. Please look at os_paypal.php, you should understand the logic and implement it in your own payment gateway
Tuan
It is difficult to guide you to develop it as it depends on the payment gateway you are using
Basically, after payment completed, the payment gateway usually sends notification back to your site to inform about the payment. You need to set that notification URL to domain.com/index.php?option=com_osmember..._payment_plugin_name
- domain.com need to be replaced with your site domain
- os_payment_plugin_name needs to be replaced with the name of the payment plugin you are developing (for example, os_paypal_
When the gateway notify the system about the payment to that url, Membership pro will call the verifyPayment method of the payment plugin (look at os_paypal.php for an exaple)
In that method, you will need to validate payment, if it is valid, you can update status of subscription record, sending emails......
That's the logic about the payment notification process. Please look at os_paypal.php, you should understand the logic and implement it in your own payment gateway
Tuan
The following user(s) said Thank You: Kate
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc, Giang Dinh Truong, Mr. Dam
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.