Documentation-RazerMS_API_Spec icon indicating copy to clipboard operation
Documentation-RazerMS_API_Spec copied to clipboard

Recommend the API that suitable for pre-auth and refund money

Open casandraastaseni opened this issue 1 year ago • 7 comments

Hi, i wanted to build the payment flow that need the user to pre-auth their card and do payment from the card token for next payment. Then refund the money back to user like the petrol station.

The flow is

  1. Tokenize card from first payment
  2. Next payment, deduct RM200 from the account by using recurring api I guess?
  3. Refund Specific amount (balance) from RM200 after deduct the user price to pay

Please suggest which API that suits to this requirement or alternative api that closer to this flow?

casandraastaseni avatar Jan 29 '24 07:01 casandraastaseni

Hi @casandraastaseni u may look for the pre auth feature in our official API.

https://github.com/RazerMS/Documentation-RazerMS_API_Spec/blob/main/%5Bofficial%20API%5D%20Razer%20API%20Spec%20for%20Merchant%20(v13.59).pdf

image

Kheechieng avatar Jan 29 '24 08:01 Kheechieng

Hi @casandraastaseni u may look for the pre auth feature in our official API.

https://github.com/RazerMS/Documentation-RazerMS_API_Spec/blob/main/%5Bofficial%20API%5D%20Razer%20API%20Spec%20for%20Merchant%20(v13.59).pdf

image

I want to tokenize the card because from the tokens we want to list down the cards in the apps, so they can choose which card to be used for transaction, is it possible?

casandraastaseni avatar Jan 29 '24 08:01 casandraastaseni

For tokenization to work u need to enable the feature by sending email to [email protected], and have the save card checkbox checked in the card number input page, once tokenization is successful a set of token will be returned in the notification URL. But if you are using hosted payment page integration or seamless integration, the list of save cards will be displayed on our page, as long as you passed the same billing name, mobile and email address in the payment request.

Kheechieng avatar Jan 29 '24 08:01 Kheechieng

For having the checkbox checked in the card number input page, do we have way to not allow the user to unchecked it before proceed, they can cancel the process if they don't want to proceed the transaction by saving the card. Because its not convenience for the process to add and tokenized card as it might not tokenize card if user unchecked and will cause issue when done the transaction without tokenized

casandraastaseni avatar Mar 06 '24 06:03 casandraastaseni

Hi @casandraastaseni you may drop an email to [email protected] by requesting to remove that checkbox and get RMS to return the token by default, but with the condition that merchant side has educated and informed customers about their consent for use of their cards info in the future.

Kheechieng avatar Mar 06 '24 07:03 Kheechieng

Hi @Kheechieng , is there any method to pre-auth the transaction (seamlessly or by api) by using existing pre-auth token without need second time user-ui interaction? I'm currently using the Recurring API but I believe that one only can directly deduct the amount from card or is there parameter that I can set like tcctype: "AUTH"? My objective is after first time pre auth the transaction with RM1, next time when my module want to charge the user we want to pre auth certain amount first, after user at final stage of the module only we absorb final amount from it.

casandraastaseni avatar Jul 02 '24 08:07 casandraastaseni

Hi @casandraastaseni You can actually refer to our direct server API (https://github.com/FiuuPayment/Documentation-Fiuu_API_Spec/blob/main/%5BOfficial%5D%20Fiuu%20Direct%20Server%20API%20v1.6.28.pdf), you can pass the token that you have received from the first payment and pass it under CC_TOKEN, additionally you need to pass TxnType=AUTS to indicate that it is a pre-auth transaction. But by default this will still redirect the customer to the bank's authentication page, and ask the customer to complete secureTAC challenge by the issuer bank. If you want a complete seamless experience, you will need to drop an email to [email protected] to request to enable non 3DS feature (subject to liability shift in case fraud happens) which will completely skip the bank authentication part. Also you will need to call capture request API after completing the pre auth transaction to finally deduct the amount from customers. Capture request API is documented here (https://github.com/FiuuPayment/Documentation-Fiuu_API_Spec/blob/main/%5Bofficial%20API%5D%20Fiuu%20API%20Spec%20for%20Merchant%20(v13.65).pdf)

Kheechieng avatar Jul 02 '24 09:07 Kheechieng

closing old issue. dear user, please use Developer Telegram group (https://github.com/FiuuPayment/Telegram-FiuuDeveloperForum) to ask and get instant response. thank you

apis17 avatar Jan 21 '25 02:01 apis17