Created
August 28, 2012 21:25
-
-
Save xcommerce-gists/3504491 to your computer and use it in GitHub Desktop.
How to Set Up a Recurring Payments Profile Using Direct Payment.curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Request | |
| ------- | |
| Endpoint URL: https://api-3t.sandbox.paypal.com/nvp | |
| HTTP method: POST | |
| POST data: | |
| USER=insert_merchant_user_name_here | |
| &PWD=insert_merchant_password_here | |
| &SIGNATURE=insert_merchant_signature_value_here | |
| &METHOD=CreateRecurringPaymentsProfile | |
| &PROFILESTARTDATE=2012-05-11T00:00:00Z #Billing date start, in UTC/GMT format | |
| &DESC=RacquetClubMembership #Profile description - same value as a billing agreement description | |
| &BILLINGPERIOD=Month #Period of time between billings | |
| &BILLINGFREQUENCY=1 #Frequency of charges | |
| &AMT=10 #The amount the buyer will pay in a payment period | |
| &MAXFAILEDPAYMENTS=3 #Maximum failed payments before suspension of the profile | |
| &ACCT=4641631486853053 #The credit card number | |
| &CREDITCARDTYPE=VISA #The type of credit card | |
| &CVV2=123 #The CVV2 number | |
| &FIRSTNAME=James | |
| &LASTNAME=Smith | |
| &STREET=FirstStreet | |
| &CITY=SanJose | |
| &STATE=CA | |
| &ZIP=95131 | |
| &COUNTRYCODE=US #The country code, e.g. US | |
| &CURRENCYCODE=USD #The currency, e.g. US dollars | |
| &EXPDATE=052015 #Expiration date of the credit card | |
| Response | |
| ------- | |
| PROFILEID=I%2dWMA886VL1234 | |
| &PROFILESTATUS=ActiveProfile | |
| &ACK=Success | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment