This Ruby library looks like it should support Apple Pay. However when submitting the request, it seems that the API is looking for a card number, not the token provided by the Apple Pay Javascript library. Here's a sample of my code:
Exception: #<CyberSource::ApiError: {
:code=>400,
:response_headers=>{
"Content-Type"=>"application/json",
"Content-Length"=>"237",
"X-Cnection"=>"close",
"x-response-time"=>"192ms",
"Strict-Transport-Security"=>"max-age=31536000",
"v-c-correlation-id"=>"0cacc2cc-1bb3-4ea7-96d0-d8e01cb1de9e"},
:response_body=>"{
"submitTimeUtc":"2020-05-22T21:55:51Z",
"status":"INVALID_REQUEST",
"reason":"MISSING_FIELD",
"message":"Declined - The request is missing one or more fields",
"details":[{"field":"paymentInformation.card.number","reason":"MISSING_FIELD"}]
}"}>
As you know, an Apple Pay request would not include the card number when opting to have CyberSource decrypt the Apple Pay token. Any help here would be greatly appreciated!
This Ruby library looks like it should support Apple Pay. However when submitting the request, it seems that the API is looking for a card number, not the token provided by the Apple Pay Javascript library. Here's a sample of my code:
The response I'm getting back is:
As you know, an Apple Pay request would not include the card number when opting to have CyberSource decrypt the Apple Pay token. Any help here would be greatly appreciated!