Support Paypal BillingAgreement

Created on 19 September 2013, about 12 years ago
Updated 18 August 2025, about 2 months ago

I use paypal with reference_transactions for implementing an subsription product type. The commerce_recurring module will organize the recurring payment and gather information of fields "Initial period", "Recurring period", "Initial price" and "recurring price". So far, Nice play with that!
The payment for subscription uses Billing Agreement. The user do initially agree the payment via paypal and authorize paypal system via the BillingAgreement allow the future payments automatically.
In my workflow the "initial period" and "initial price" of subscription comes with an test-period - "Test subscription 30 days for free", after that, the recurring procress should do the regular price and period.
That means, the first transaction to paypal should be a "zero-billing" - in communication with our paypal contact, the "Reference Transaction" provide that workflow in following:

Step 1: GetExpressCheckoutDetails -> provide information about transaction
Step 2: CreateBillingAgreement -> request the agreementId
Step 3: after test-period, do the normal DoExpressCheckoutPayment

In commerce paypal modul the Step 2 is "hard-wired" with DoExpressCheckoutPayment. In my first solution, I've implemented the commerce_paypal_ec_do_agreement(), that will be used instead of commerce_paypal_ec_do_payment().. Triggered by check the amount of payment is zero.

I've looked for doing that in the drupal-way with hook() or with rules, without success.

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

PayPal EC

Created by

πŸ‡©πŸ‡ͺGermany fragtom

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024