Problems with recurring donations and periods using a custom payment gateway #6780
Unanswered
carazo
asked this question in
Developer Q&A
Replies: 2 comments
-
@carazo most payment gateways do not support quarterly subscriptions, so when a donor makes a quarterly donation GiveWP will convert that to the corresponding number of months. For example:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
No, this is not the reason. As you can see in the code I prepared for you, RedSys use a web service to send payments. You can send subscriptions every hour, every minute, every day... as you wish. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a gateway to enable RedSys payment (a Spanish one) into Give and all is working flawlessly except with recurring donations that are not based on a monthly subscription.
I use this hook:
add_action( 'give_daily_scheduled_events', array( $this, 'check_for_renewal_subscriptions' ), 1 );
Like the manual payments recurring donation gateway does and I do something like this to look for payments to be sent:
`function check_for_renewal_subscriptions() {
global $wpdb;
crear_pago_suscripcion creates a new payment and enviar_pago_suscripcion calls the web service of the bank.
I cannot understand why quarterly payments are made monthly.
Beta Was this translation helpful? Give feedback.
All reactions