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

CyberSource::PayerAuthSetupRequest is not working, returns 400 constantly #60

Open
alexmikulaninec opened this issue Aug 17, 2021 · 3 comments

Comments

@alexmikulaninec
Copy link

alexmikulaninec commented Aug 17, 2021

Hi, I'm integrating Cybersource payments into our systems and am using this gem to call the api. In the front end I have flex microform that gives me a token and I don’t have control over card details.

When I try to setup payer authentication for 3DS payments I send MerchantID, key and secret alongside with client reference code and decoded jti token from flex token and always receive 400 with "reason\":\"INVALID_DATA\",\"message\":\"Declined - One or more fields in the request contains invalid data\".

I'm following this example https://github.com/CyberSource/cybersource-rest-samples-ruby/blob/master/Samples/PayerAuthentication/setup-completion-with-flex-transient-token.rb

It also happens on your live console https://developer.cybersource.com/api-reference-assets/index.html#payer-authentication_payer-authentication_setup-payer-auth_samplerequests-dropdown_setup-completion-with-flex-transient-token_liveconsole-tab-request-body so I wonder if there's a bug?

Thank you.

@alexmikulaninec
Copy link
Author

Some backend config changes were needed on Cybersource side to make this work. However there's no clear docs stating this.

@ahmedalashii
Copy link

@alexmikulaninec Could you tell me exactly what is the issue and how to resolve it?

@alexmikulaninec
Copy link
Author

@alexmikulaninec Could you tell me exactly what is the issue and how to resolve it?

@ahmedalashii I contacted CyberSource support team and they made changes in the config for the account that was being used so that did the trick. It's not documented so it was a pain to figure out. Hope it helps.

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

No branches or pull requests

2 participants