Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
Created August 28, 2012 21:25
Show Gist options
  • Select an option

  • Save xcommerce-gists/3504491 to your computer and use it in GitHub Desktop.

Select an option

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
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