简体   繁体   中英

how to active subscription process with paypal DirectPayment method

We integrated PayPal Recurring Payment API (PHP) for subscription using express checkout and it is working fine. Now we are trying to integrate DirectPayment to accept credit/debit cards using DoDirectPayment . I send request to PayPal using DoDirectPayment method and it returns success in response and now i want to create recurring profile against this credit/debit card for future transactions. Now at this point if i call CreateRecurringPaymentsProfile method it requires TOKEN but i don't have any token returned in DoDirectPayment method response to create recurring profile. So please help and guide me the right process where is problem or i made any mistake.

Thanks

CreateRecurringPaymentsProfile only requires a token when used with Express Checkout. For direct credit cards you'll use the same CRPP request, but you'll leave the token out and include the credit card parameters instead.

Here is a sample request that works just fine.

[REQUESTDATA] => Array
    (
        [USER] => ****
        [PWD] => ****
        [VERSION] => 112.0
        [BUTTONSOURCE] => AngellEYE_PHPClass
        [SIGNATURE] => ****
        [METHOD] => CreateRecurringPaymentsProfile
        [SUBSCRIBERNAME] => Tester Testerson
        [PROFILESTARTDATE] => 2014-06-27T00:00:00\Z
        [DESC] => Angell EYE Web Hosting
        [AUTOBILLAMT] => 1
        [BILLINGPERIOD] => Month
        [BILLINGFREQUENCY] => 1
        [TOTALBILLINGCYCLES] => 0
        [AMT] => 10.00
        [CURRENCYCODE] => USD
        [CREDITCARDTYPE] => Visa
        [ACCT] => 4635800000971893
        [EXPDATE] => 022016
        [CVV2] => 123
        [STARTDATE] => 
        [ISSUENUMBER] => 
        [EMAIL] => tester@hey.com
        [BUSINESS] => Testers, LLC
        [FIRSTNAME] => Tester
        [LASTNAME] => Testerson
        [STREET] => 123 Test Ave.
        [CITY] => Grandview
        [STATE] => MO
        [COUNTRYCODE] => US
        [ZIP] => 64030
    )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM