This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testCreateCCAgreement.json
Jay Patel d50d980cb8 Updates to API Urls
- api.sandbox.paypal.com was changed to api-s.sandbox.paypal.com
- api.paypal.com was changed to api-s.paypal.com
2015-02-12 15:20:45 -06:00

70 lines
2.0 KiB
JSON
Executable File

{
"description": "This operation creates agreement having Credit card as payment option",
"title": "Agreement created using credit card",
"runnable": true,
"operationId": "agreement.create",
"user": {
"scopes": ["https://uri.paypal.com/services/subscriptions"]
},
"credentials": {
"oauth": {
"path": "/v1/oauth/token",
"clientId": "",
"clientSecret": ""
}
},
"request": {
"path": "v1/payments/billing-agreements/",
"method": "POST",
"headers": {},
"body": {
"name": "DPRP",
"description": "Payment with credit Card ",
"start_date": "2015-06-17T9:45:04Z",
"plan": {
"id": "P-1WJ68935LL406420PUTENA2I"
},
"shipping_address": {
"line1": "111 First Street",
"city": "Saratoga",
"state": "CA",
"postal_code": "95070",
"country_code": "US"
},
"payer": {
"payment_method": "credit_card",
"payer_info": {
"email": "jaypatel512-facilitator@hotmail.com"
},
"funding_instruments": [
{
"credit_card": {
"type": "visa",
"number": "4204466604263862",
"expire_month": "12",
"expire_year": "2017",
"cvv2": "128"
}
}
]
}
}
},
"response": {
"status": "200 OK",
"headers": {},
"body": {
"id": "I-V8SSE9WLJGY6",
"links": [
{
"href": "https://stage2p2163.qa.paypal.com/v1/payments/billing-agreements/I-V8SSE9WLJGY6",
"rel": "self",
"method": "GET"
}
]
}
}
}