Paypal reccuring payment TRIAL

mrcsempe
Contributor
Contributor

PayPal process:
1. I create two PaymentDefinition objects:
    - 'TRIAL' type, daily, 1 times, 350 HUF
    - 'REGULAR' type, daily, 0 times (infinite), 1,980 HUF
2. I create a Plan object of type 'INFINITE' and add the two PaymentDefinitions in a list
3. Activate the Plan object
4. Agreement object is given, it's start_date value is the current time
5. Add the Plan and a Payer (payment_method: 'paypal') objects to the Agreement object
6. I create the Agreement object and redirect the client to the url received
7. If Paypal redirects to the 'return' url, I execute the 'execute' method on the Agreement object

My problem:
According to the documentation, if a TRIAL PaymentDefinition exists, it will be deducted first and only apply the REGULAR type if all TRIAL cycles have been completed. But when I try it, it is deducted from 1980 HUF, not 350 HUF. When I query the details of the agreement based on the id, then the Plan object has the TRIAL definition for the PaymentDefinitions object. I also tried REGULAR not infinite, but 2 times, in this case FIXED instead of Plan 'INFINITE', but the same is deducted from 1980 HUF.

I did all this in sandbox mode.

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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