Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you use this client with apple pay #23

Open
velevtzvetlin opened this issue Jul 30, 2019 · 4 comments
Open

How do you use this client with apple pay #23

velevtzvetlin opened this issue Jul 30, 2019 · 4 comments

Comments

@velevtzvetlin
Copy link

Having trouble hitting sandbox with payload coming back from apple pay { "processingInformation": { "paymentSolution": "001" }, "paymentInformation": { "fluidData": { "key": "eDDCAGL+IF4WMzsap7Phtvm1DImIO3jIgfXouz2KqUwe4IaAhn18u69A6rgSFMg2vmuNRW8PjFAiiWVPZogGHKg9V+Ln7qaYeaLc+f5esM10U8m6UcpsM+zJyW5iyj4dsFAbpEUxeDew+s/DNY6GfHxbgL2yLjkWvAvKhSh0e2TK1cRYesu2i0fneGxtMeksv7Q7KULhHWHNc79oV8KY80iEk+yF2Uw5QbD24pb+okbQGWzHiQ52V/D2IiCDkSeCDIlsX46luThpUBYjkELQB/3OzevZ81GtgJ845Ez10vQregRodMvj9noMpi60KrOSLPY8wGTkSIlqo9cH33NyOQ6SXrE893qPXqEnP9AtmquyDi994nNFyQxbrp+nUa9XWgpd2tcS0H9xOJfxRUgVBRiG2XwgVFL/aI3vyYnHLQ==" } } }

@snavinch
Copy link
Contributor

Can you give us the following details-

  • Which API are you hitting?
  • What is the response you're getting?

@velevtzvetlin
Copy link
Author

velevtzvetlin commented Jul 31, 2019

Modified Process Payment with custom parameters in cybersource-rest-client-samples repo

... const RunEnvironment = 'cybersource.environment.SANDBOX'; ...
`
var configObject = new configuration();
var instance = new cybersourceRestApi.PaymentsApi(configObject);

	var clientReferenceInformation = new cybersourceRestApi.Ptsv2paymentsClientReferenceInformation();
	clientReferenceInformation.code = 'test_payment';
	var paymentInformation = new cybersourceRestApi.Ptsv2paymentsPaymentInformation();
	var fluidData = new cybersourceRestApi.Ptsv2paymentsPaymentInformationFluidData();
	fluidData.key = "eDDCAGL+IF4WMzsap7Phtvm1DImIO3jIgfXouz2KqUwe4IaAhn18u69A6rgSFMg2vmuNRW8PjFAiiWVPZogGHKg9V+Ln7qaYeaLc+f5esM10U8m6UcpsM+zJyW5iyj4dsFAbpEUxeDew+s/DNY6GfHxbgL2yLjkWvAvKhSh0e2TK1cRYesu2i0fneGxtMeksv7Q7KULhHWHNc79oV8KY80iEk+yF2Uw5QbD24pb+okbQGWzHiQ52V/D2IiCDkSeCDIlsX46luThpUBYjkELQB/3OzevZ81GtgJ845Ez10vQregRodMvj9noMpi60KrOSLPY8wGTkSIlqo9cH33NyOQ6SXrE893qPXqEnP9AtmquyDi994nNFyQxbrp+nUa9XWgpd2tcS0H9xOJfxRUgVBRiG2XwgVFL/aI3vyYnHLQ==";
	fluidData.descriptor = 'RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U';
	fluidData.encoding = 'Base64';
	paymentInformation.fluidData = fluidData;
	var processingInformation = new cybersourceRestApi.Ptsv2paymentsProcessingInformation();
	processingInformation.paymentSolution = '001';

	var request = new cybersourceRestApi.CreatePaymentRequest();
	request.processingInformation = processingInformation;
	request.paymentInformation = paymentInformation;`

Response: "status":"INVALID_REQUEST","reason":"MISSING_FIELD","message":"Declined - The request is missing one or more fields","details":[{"field":"orderInformation.billTo.locality","reason":"MISSING_FIELD"},{"field":"paymentInformation.tokenizedCard.number","reason":"MISSING_FIELD"},{"field":"orderInformation.billTo.lastName","reason":"MISSING_FIELD"},{"field":"orderInformation.billTo.email","reason":"MISSING_FIELD"},{"field":"orderInformation.billTo.address1","reason":"MISSING_FIELD"},{"field":"orderInformation.billTo.country","reason":"MISSING_FIELD"}]

@velevtzvetlin
Copy link
Author

Same issue when hitting apitest.cybersource.com/pts/v2/payments/ via postman with { "processingInformation": { "paymentSolution": "001" }, "paymentInformation": { "fluidData": { "key": "eDDCAGL+IF4WMzsap7Phtvm1DImIO3jIgfXouz2KqUwe4IaAhn18u69A6rgSFMg2vmuNRW8PjFAiiWVPZogGHKg9V+Ln7qaYeaLc+f5esM10U8m6UcpsM+zJyW5iyj4dsFAbpEUxeDew+s/DNY6GfHxbgL2yLjkWvAvKhSh0e2TK1cRYesu2i0fneGxtMeksv7Q7KULhHWHNc79oV8KY80iEk+yF2Uw5QbD24pb+okbQGWzHiQ52V/D2IiCDkSeCDIlsX46luThpUBYjkELQB/3OzevZ81GtgJ845Ez10vQregRodMvj9noMpi60KrOSLPY8wGTkSIlqo9cH33NyOQ6SXrE893qPXqEnP9AtmquyDi994nNFyQxbrp+nUa9XWgpd2tcS0H9xOJfxRUgVBRiG2XwgVFL/aI3vyYnHLQ==", "descriptor": "RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U", "encoding": "Base64" } } }

@Paulentin
Copy link

Is this being resolved? is there documentation of the exact example of how the request should be sent?

faced documentation these sources

but none of them work

receiving invalid request

Looking for documentation of the request with Cybersource decryption

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants