I was able to download the Java sample code and successfully run the authorizations test with the Cybersource Gateway API V1. When I attempted to modify the samples inclusive of x-pay-token creation to leverage V2 API I can't seem to get the process to work. The first question I have is their sample code for V2 API? If not is there any recommendations for processing payments succesfully based on the json i included below
Request with test cc number masked
{
"paymentInformation":{
"card":{
"expirationYear":"2025",
"number":"555555******4444",
"expirationMonth":"12"
}
},
"orderInformation":{
"amountDetails":{
"totalAmount":"102.00",
"currency":"USD"
}
}
}
Response:
{"ID":null,"status":"500","statusInformation":{"reason":"SYSTEM_ERROR","message":"Request failed due to unknown system error."},"submitTimeUTC":"2018-02-16T07:38:05Z"}
Hi,
Thanks for requesting Cybersource Payments API v2 sample code in the Visa community forum. You've asked a great question and there's a lot of really fun sample code you can take a look at and play with.
Please give our Code Explorer and/or API Explorer a try, you'll get a chance to see the Request and Sample Response of this API.
CyberSource Payments > API Reference > Cybersource Payments API v2
https://developer.visa.com/capabilities/cybersource/reference#cybersource__cybs_payments_v2
API Explorer
https://developer.visa.com/apiexplorer
Thank you,
Diana
We have been using the documentation and the API Explorer to properly format the information and pulling the requests in some cases directly from API Explorer. Since everything comes back as an unknown error or internal server error its causing difficulties detremining the root cause. We will try some more things in hopes of resolving
{"ID":null,"status":"500","statusInformation":{"reason":"SYSTEM_ERROR","message":"Request failed due to unknown system error."},"submitTimeUTC":"2018-02-17T06:16:18Z"}
{"responseStatus":{"severity":"ERROR","info":"","status":0,"message":"Internal server error"}}
Hi,
Thanks for posting your question to the community forum. The 500 internal server error indicates that you are having a connectivity issue. Please ensure you have completed the steps in the “Get Started” documentation to test your connectivity and the integration with your application via this link here - https://developer.visa.com/vdpguide#get-started-overview
Also, can you please review this video to make sure you are using the correct process to get credentials to start building with XPay Token?
Getting Started with Visa Developer > API Key – Shared Secret (X-Pay-Token)
https://developer.visa.com/guides/vdpguide#api_key__shared_secret_xpaytoken
Thank you,
Diana