Skip to content

Commit 50e3ab5

Browse files
authored
Update README.md
1 parent 1f40096 commit 50e3ab5

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,37 @@ This sample demonstrates how your checkout form can remain exactly as it is toda
3939
### Microform Sample
4040

4141
This sample demonstrates how you can replace the sensitive data fields (credit card number) on your checkout form with a field (Flex Microform) hosted entirely on CyberSource servers. This field will accept and tokenize the customer's credit card information directly from their browser on a resource hosted by CyberSource, replacing that data with a secure PCI-compliant token. This can then be sent to your server along with the other non-PCI order data. This can help achieve PCI-DSS SAQ A level compliance for your application as even your client-side code does not contain a mechanism to handle the credit card information.
42+
43+
## Using the Flex Payment Token
44+
45+
You can use the token generated to make a payment with the CyberSource REST API (https://developer.cybersource.com/api/reference/api-reference.html).
46+
47+
Place the token in the CustomerId field:
48+
49+
```json
50+
{
51+
"clientReferenceInformation": {
52+
"code": "TC50171_3"
53+
},
54+
"processingInformation": {
55+
"commerceIndicator": "internet"
56+
},
57+
"paymentInformation": {
58+
"customer": {
59+
"customerId": "7500BB199B4270EFE05340588D0AFCAD"
60+
}
61+
},
62+
"orderInformation": {
63+
"amountDetails": {
64+
"totalAmount": "22",
65+
"currency": "USD"
66+
},
67+
"billTo": {
68+
"firstName": "John",
69+
"lastName": "Doe"
70+
}
71+
}
72+
}
73+
74+
```
75+

0 commit comments

Comments
 (0)