Current Loyalty session token, represents a 'signed-in' member
Vista Digital Platform (V1)
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards
- cURL
- JavaScript
- Node.js
curl -i -X GET \
https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards \
-H 'Connect-Region-Code: string' \
-H 'loyaltySessionToken: string'{ "cards": [ { … } ] }
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards/{memberPaymentCardId}
- cURL
- JavaScript
- Node.js
curl -i -X GET \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards/{memberPaymentCardId}' \
-H 'Connect-Region-Code: string' \
-H 'loyaltySessionToken: string'{ "id": "string", "cardDetails": { "maskedCardNumber": "411111......1111", "type": "VISA", "expiryMonth": 1, "expiryYear": 27 }, "isPrimary": true, "isUsedForRecurringSubscriptionBilling": true }
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards/{memberPaymentCardId}
- cURL
- JavaScript
- Node.js
curl -i -X DELETE \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards/{memberPaymentCardId}' \
-H 'Connect-Region-Code: string' \
-H 'loyaltySessionToken: string'- application/json
- text/json
- application/*+json
- application/json-patch+json
The values needed to create an embedded member payment card
Gets the URL that the browser will be directed to after the embedded payment has finished, if the requested web payment method requires redirect
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards/embedded
- cURL
- JavaScript
- Node.js
- application/json
- text/json
- application/*+json
- application/json-patch+json
curl -i -X POST \
https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards/embedded \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: application/json' \
-H 'loyaltySessionToken: string' \
-d '{
"webPaymentMethodId": 0,
"redirectReturnUrl": "http://example.com",
"languageTag": "string"
}'{ "memberPaymentCardId": "string", "webPaymentMethodId": 0, "connectorFunctionName": "string", "connectorParametersJson": "string", "createCardTokenUrl": "http://example.com", "sdkScriptUrls": [ "string" ], "isButtonIncluded": true, "isPrimaryCardOptionIncluded": true, "connectorScriptUrls": [ "string" ] }
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/{paymentId}
- cURL
- JavaScript
- Node.js
curl -i -X DELETE \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/{paymentId}' \
-H 'Connect-Region-Code: string'- application/json
- text/json
- application/*+json
- application/json-patch+json
Values needed to start the embedded payment
Gets the URL that the browser will be directed to after the embedded payment has finished, if the requested web payment method requires redirect
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/embedded
- cURL
- JavaScript
- Node.js
- application/json
- text/json
- application/*+json
- application/json-patch+json
curl -i -X POST \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/embedded' \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: application/json' \
-d '{
"webPaymentMethodId": 0,
"redirectReturnUrl": "http://example.com",
"languageTag": "string"
}'Success
Gets the order embedded payment entity
Gets the identifier that can be used to uniquely identify the payment within the order base
Gets the type
Gets the order embedded payment client data entity
Gets the JSON blob of parameters required by the connector
Gets the URL that needs to be called after the payment has been accepted
Gets the list of SDK script URLs that need to be loaded
Gets the list of connector script URLs that need to be loaded
Gets the name of the connector function that needs to be called
{ "embeddedPayment": { "id": "string", "type": "CinemaProcessed", "value": 0.1, "status": "NotStarted" }, "clientData": { "connectorParametersJson": "string", "completePaymentUrl": "http://example.com", "sdkScriptUrls": [ … ], "connectorScriptUrls": [ … ], "connectorFunctionName": "string", "isPaymentButtonIncluded": true }, "updatedOrderExpiresAt": "2019-08-24T14:15:22Z" }
Request
The payment considered current is the most recently created order embedded payment for the order.
This endpoint may be polled to determine the status of the payment after embedded payment process has completed on client. This is required currently due to limitations in the current Web Payment Module payment process around returning payment status as part of the UI interaction requiring the client to make this extra call before leaving the payment UI.
- Vista.Ocapi
- Vista.Ocapi.EmbeddedPayment
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/embedded/current
- cURL
- JavaScript
- Node.js
curl -i -X GET \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/embedded/current' \
-H 'Connect-Region-Code: string'{ "id": "string", "type": "CinemaProcessed", "value": 0.1, "status": "NotStarted" }
- application/json
- text/json
- application/*+json
- application/json-patch+json
Values needed to start the redirect payment
Gets the URL that the browser will be directed to after the after successful or cancelled payment
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/redirect
- cURL
- JavaScript
- Node.js
- application/json
- text/json
- application/*+json
- application/json-patch+json
curl -i -X POST \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/redirect' \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: application/json' \
-d '{
"webPaymentMethodId": 0,
"redirectReturnUrl": "http://example.com",
"languageTag": "string"
}'{ "redirectPayment": { "id": "string", "type": "CinemaProcessed", "value": 0.1, "status": "NotStarted" }, "redirectUrl": "http://example.com", "updatedOrderExpiresAt": "2019-08-24T14:15:22Z" }
Request
The payment considered current is the most recently created order redirect payment for the order.
This endpoint may be polled to determine the status of the payment after the redirect payment process has completed on the client. This is required currently due to limitations in the current Web Payment Module payment process around returning payment status as part of the UI interaction requiring the client to make this extra call before leaving the payment UI.
- Vista.Ocapi
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/redirect/current
- cURL
- JavaScript
- Node.js
curl -i -X GET \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/redirect/current' \
-H 'Connect-Region-Code: string'{ "id": "string", "type": "CinemaProcessed", "value": 0.1, "status": "NotStarted" }
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/web-payment-methods
- cURL
- JavaScript
- Node.js
curl -i -X GET \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/web-payment-methods?orderType=Standard&siteId=string' \
-H 'Connect-Region-Code: string'{ "webPaymentMethods": [ { … } ] }
- application/json
- text/json
- application/*+json
- application/json-patch+json
The values needed to update the member's primary member payment card
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards/primary
- cURL
- JavaScript
- Node.js
- application/json
- text/json
- application/*+json
- application/json-patch+json
curl -i -X PUT \
https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/payment-cards/primary \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: application/json' \
-H 'loyaltySessionToken: string' \
-d '{
"memberPaymentCardId": "string"
}'