Closed KunJeongPark closed 1 year ago
Vault
customerID
CardRequest
Attributes
EncodedCard
confirm-payment-source
List GitHub usernames for everyone who contributed to this pull request.
Method: POST URL: https://api.sandbox.paypal.com/v2/checkout/orders/0EL07199CK987522C/confirm-payment-source Body:
{ "application_context": { "return_url": "sdk.ios.paypal://card/success", "cancel_url": "sdk.ios.paypal://card/cancel" }, "payment_source": { "card": { "number": "4344511979394247", "security_code": "123", "billing_address": null, "name": null, "attributes": { "verification": { "method": "SCA_ALWAYS" } }, "expiry": "2025-01" } } }
Response After Authorize
{ "id": "0EL07199CK987522C", "status": "COMPLETED", "payment_source": { "card": { "last_digits": "4247", "expiry": "2025-01", "brand": "VISA", "type": "UNKNOWN" } }
Method: POST URL: https://api.sandbox.paypal.com/v2/checkout/orders/3FB45835KB971130X/confirm-payment-source
Body:
{ "application_context": { "return_url": "sdk.ios.paypal://card/success", "cancel_url": "sdk.ios.paypal://card/cancel" }, "payment_source": { "card": { "number": "4344511979394247", "security_code": "123", "billing_address": null, "name": null, "attributes": { "vault": { "store_in_vault": "ON_SUCCESS" }, "verification": { "method": "SCA_ALWAYS" }, "customer": { "id": "test567" } }, "expiry": "2025-01" } } }
Response After Authorize:
{ "id": "3FB45835KB971130X", "status": "COMPLETED", "payment_source": { "card": { "last_digits": "4247", "expiry": "2025-01", "brand": "VISA", "type": "UNKNOWN", "attributes": { "vault": { "id": "3fb3mfxf", "status": "VAULTED", "customer": { "id": "test567" }..
Summary of changes
Vault
object with optionalcustomerID
of String type inCardRequest
Attributes
from Card to newEncodedCard
struct that formats contents ofCardRequest
forconfirm-payment-source
Orders API request.Checklist
Authors
No Vault Request:
Method: POST URL: https://api.sandbox.paypal.com/v2/checkout/orders/0EL07199CK987522C/confirm-payment-source Body:
Response After Authorize
Vault with Purchase Request:
Method: POST URL: https://api.sandbox.paypal.com/v2/checkout/orders/3FB45835KB971130X/confirm-payment-source
Body:
Response After Authorize: