Closed Dinamiko closed 2 months ago
1.1 PayPal gateway disabled
1.2 ACDC gateway disabled
2.1 Subscription Mode switch from PayPal Vaulting to PayPal Subscriptions
2.2 Subscription Mode switch from PayPal Subscriptions to PayPal Vaulting
PayPal gateway enabled and Subscriptions Mode PayPal Subscriptions
Purchase PayPal subscription (create and connect if it does not exist)
Renewal subscription by sending PayPal PAYMENT.SALE.COMPLETED webhook manually (using Postman or cURL…):
PAYMENT.SALE.COMPLETED
! defined( 'PAYPAL_WEBHOOK_REQUEST_VERIFICATION' ) && define( 'PAYPAL_WEBHOOK_REQUEST_VERIFICATION', false );
ppcp_subscription
billing_agreement_id
POST http://example.com/wp-json/paypal/v1/incoming { "id": "I-DONT-CARE", "event_type": "PAYMENT.SALE.COMPLETED", "resource": { "billing_agreement_id": "I-ABC123", "id": "I-DONT-CARE-EITHER" } }
Switch Subscriptions Mode to PayPal Vaulting
Renewal subscription again
2.3 Subscription Mode switch from PayPal Vaulting to Disable PayPal for subscriptions
Steps To Reproduce
1.1 PayPal gateway disabled
1.2 ACDC gateway disabled
2.1 Subscription Mode switch from PayPal Vaulting to PayPal Subscriptions
2.2 Subscription Mode switch from PayPal Subscriptions to PayPal Vaulting
PayPal gateway enabled and Subscriptions Mode PayPal Subscriptions
Purchase PayPal subscription (create and connect if it does not exist)
Renewal subscription by sending PayPal
PAYMENT.SALE.COMPLETED
webhook manually (using Postman or cURL…):ppcp_subscription
from Custom Fields, use this value asbilling_agreement_id
.Switch Subscriptions Mode to PayPal Vaulting
Renewal subscription again
2.3 Subscription Mode switch from PayPal Vaulting to Disable PayPal for subscriptions
Possible Cause
Suggested solution
Acceptance Criteria