Palbase Payments · API
POST
/payments/intents/{intent_id}/otpSubmit payment OTP
Verifies a customer's Masterpass or bank OTP challenge and completes the active payment attempt. The address the code's failures and its charge are counted against, and iyzico is told, is its request's, or the buyer's one the project's server names in it (buyer.ip). A card refused at its charge counts toward the buyer's limit of failed payments, as a confirmation's does.
Called by your app, with the publishable key; or a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.
Path
intent_idstring · requiredPaymentIntent UUID.Request body
buyerobject · optionalThe buyer a Masterpass code is sent for, named by the project's server (secret key): its address alone. Anything else of a buyer is refused (`400`); a buyer's own client does not name it.challenge_idstring · requiredOTP challenge ID from NextAction.client_secretstring · optionalIntent client_secret.otpstring · requiredOne-time passcode entered by the customer.save_methodboolean · optionalSave the verified card for future one-click payments.curl
curl -X POST "https://<your-ref>.palbase.studio/payments/intents/<intent_id>/otp" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"challenge_id":"string","otp":"string"}'Responses
200OK
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation SubmitIntentOTP of payments's contract.