Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using GooglePay with CyberSource Gateway
I'm currently using the PHP Simple Order Api REST client https://github.com/CyberSource/cybersource-rest-client-php
Both developers guides found on
- https://developer.cybersource.com/api/developer-guides/dita-payments/CreatingOnlineAuth/CreatingAuth.../echatrandom
- http://apps.cybersource.com/library/documentation/dev_guides/Google_Pay_SO_API/html/wwhelp/wwhimpl/j.../echatspin
Describe the same way to format the data obtained through google pay. They however describe different ways to format the request.
1) Set the encryptedPayment_data field to the value of the encryptedMessage field that was returned in the Full Wallet response. 2) Set the paymentSolution field to 012.
and
2) In the authorization request under the paymentInformation object, set the key field under the fluidData object to the Base64-encoded value obtained from the Google Pay blob. 3) Under the processingInformation object, set the paymentSolution field to 012.
I'm using the I tried the fluidData way since I couldn't find reference of an encryptedPayment field reference in Simple Order API but it's not working.
Request
{ "clientReferenceInformation": { "code": "testcode" }, "processingInformation": { "paymentSolution": "012" }, "paymentInformation": { "fluidData": { "key":"<Google Pay Blob>" } }, "orderInformation": { "amountDetails": { "totalAmount": "100.00", "currency": "USD" }, "billTo": { "firstName": "John", "lastName": "Doe", "company": "ABC Company", "address1": "1 Market St", "locality": "san francisco", "administrativeArea": "CA", "postalCode": "94105", "country": "US", "email": "test@cybs.com", "phoneNumber": "4158880000" } } }
Response
[body] => stdClass Object ( [submitTimeUtc] => 2019-04-10T16:05:39Z [status] => INVALID_REQUEST [reason] => MISSING_FIELD [message] => Declined - The request is missing one or more fields [details] => Array ( [0] => stdClass Object ( [field] => recipientInformation.card.number [reason] => MISSING_FIELD ) ) ) [message] => [400] Error connecting to the API (https://apitest.cybersource.com/pts/v2/payments/)
10-17-2022 04:22 AM
0 REPLIES 0
