Subscription Billing Cycles - Can i set to 5 minutes?

shen_ming
Contributor
Contributor

Like Apple and Google the sandbox auto renew frequency can be short at 5 minute.

If it was month or day will be difficult to test.(Need wait too long)

 

Login to Me Too
3 REPLIES 3

MTS_Jennifer
Moderator
Moderator

Hello,

Thank you for posting to the PayPal Sandbox Community!

At this time the shortest frequency available is 1 day. You can, however, charge an initial payment to test the transaction before the first billing.

 

Thank you,

Jennifer

PayPal

Login to Me Too

shen_ming
Contributor
Contributor

Thanks.

 

I read api doc from https://developer.paypal.com/docs/subscriptions/integrate/#3-create-a-plan

and https://developer.paypal.com/docs/api/subscriptions/v1/#definition-billing_cycle

 

still can't figure out how to create a plan that cant  charge an initial payment to test the transaction before the first billing.

For my understand the trial is free for buyer.

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello,

If you add this to your Subscription:

"payee_preferred": "IMMEDIATE_PAYMENT_REQUIRED"

Then the payment will be collected immediately.

Below is an example you can test with:

{
      "plan_id": "P-5DG14556PX1201030L2M36KZ",
      "start_time": "2020-04-18T06:00:00Z",
      "subscriber": {
        "name": {
          "given_name": "John",
          "surname": "Park"
        },
        "email_address": "testing@tester.com"
      },
      "application_context": {
        "brand_name": "Special Test Plan",
        "locale": "en-US",
        "shipping_preference": "SET_PROVIDED_ADDRESS",
        "user_action": "SUBSCRIBE_NOW",
        "payment_method": {
          "payer_selected": "PAYPAL",
          "payee_preferred": "IMMEDIATE_PAYMENT_REQUIRED"
        },
        "return_url": "https://example.com/returnUrl",
        "cancel_url": "https://example.com/cancelUrl"
      }
    }

 Thank you,

Jennifer

PayPal

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.