paytrail / api-documentation

Paytrail Payment API documentation
MIT License
6 stars 11 forks source link

/tokenization/addcard-form returns status 200 and html code of the card addition form #90

Closed marinap-124 closed 1 year ago

marinap-124 commented 1 year ago

I send POST request to https://services.paytrail.com/tokenization/addcard-form

{ "checkout-account":375917, "checkout-algorithm":"sha256", "checkout-method":"POST", "checkout-nonce":564635208570151, "checkout-redirect-cancel-url":"https://example.fi/paytrailtoken", "checkout-redirect-success-url":"https://example.fi/paytrailtoken", "checkout-timestamp":"2018-07-06T10:01:31.904Z",
"signature":"1e59b16b1a2c1eb0d07f41c6747f6e325929e365711f448f7b8de1640362ee90" }

According to https://docs.paytrail.com/#/?id=adding-tokenizing-cards "On a successful request the user will be redirected to Paytrail's card addition service where user will input credit card information."

Instead of redirection to the paytrail card addition form I get the html code of the card addition form with status "200 OK". Why doesn't redirection work?

marinap-124 commented 1 year ago

Resolved