sandbox next_billing_time don't give billing

shen_ming
Contributor
Contributor

Hi.

 

I got subscription detail like this

 

{'billing_info': {'cycle_executions': [{'cycles_completed': 1,
'cycles_remaining': 0,
'sequence': 1,
'tenure_type': 'TRIAL',
'total_cycles': 1},
{'current_pricing_scheme_version': 1,
'cycles_completed': 0,
'cycles_remaining': 0,
'sequence': 2,
'tenure_type': 'REGULAR',
'total_cycles': 0}],
'failed_payments_count': 0,
'next_billing_time': '2020-04-27T10:00:00Z',
'outstanding_balance': {'currency_code': 'USD',
'value': '0.0'}},

 

'next_billing_time': '2020-04-27T10:00:00Z' But now it is "'2020-04-27 13:05:13.918096'"

The billing it not coming.

And the transactions of this subscription  list don't change counts.

 

I want to know whether the sandbox have time delay for billing created?

 

 

 

Login to Me Too
2 REPLIES 2

shen_ming
Contributor
Contributor

At the end.

It happened at 

 

'last_payment': {'amount': {'currency_code': 'USD',
'value': '10.0'},
'time': '2020-04-27T22:51:31Z'},

 

Which later about 12 hours ?

 

 

Login to Me Too

dev-at-i2hcomm
New Community Member

it seems your first 'sequence' is of type 'TRIAL', therefore there are no billing before this sequence ends.

I wonder why next-billing-time is not when TRIAL expires. that'd be logical and easier to handle the expiration date of the trial

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.