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

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

Open
casandraastaseni opened this issue Jan 29, 2024 · 5 comments
Open

Comments

@casandraastaseni
Copy link

casandraastaseni commented Jan 29, 2024

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?

@Kheechieng
Copy link

@casandraastaseni
Copy link
Author

casandraastaseni commented Jan 29, 2024

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?

@Kheechieng
Copy link

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.

@casandraastaseni
Copy link
Author

casandraastaseni commented Mar 6, 2024

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

@Kheechieng
Copy link

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.

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