4

I am new to ReactJS and implementing payment of bills in my application for which I need to implement the payment gateway services from mastercard. The application should support both AMEX and MASTERCARD payments. As a reference, we need to use the following link

https://ap-gateway.mastercard.com/api/documentation/integrationGuidelines/hostedSession/integrationModelHostedSession.html

But how I will use the same code in the mentioned link in the reactjs app is a confusion. Because in the render() method I was unable to use the script and the callbacks. Is there different way to implement in reactjs.

I also did a bit of google and came across

https://www.npmjs.com/package/mastercard-hosted-session

But my confusion is when I click the Pay button how to put everything in perspective with the link above.

If anyone has a better approach or solution, kindly let me know

user1295308
  • 425
  • 7
  • 20
  • 1
    Any help on this ? – user1295308 Feb 27 '20 at 06:56
  • Hi, have you completed this? I am also stuck on implementing this. Kindly help me on this – Gaurav joshi Nov 06 '20 at 07:38
  • Yes, I have done it, Let me know where are you stuck – user1295308 Nov 18 '20 at 08:34
  • I am using hosted session and I lost control over inputs. I wanna to validate fields before sending/submitting. How can I achieve that? – Gaurav joshi Nov 25 '20 at 07:04
  • in hosted session, your fields are validated in the hosted sessions Payment configure method Check this website https://ap-gateway.mastercard.com/api/documentation/integrationGuidelines/hostedSession/integrationModelHostedSession.html – user1295308 Nov 29 '20 at 13:24
  • Hi @user1295308 That I know, but I want to validate first then send it to session.js via configure – Gaurav joshi Nov 30 '20 at 07:11
  • since it is a hosted session so I believe the validation and control is with the master card also once you load them, it will open the respective iframe for those input fields. Can you share what you have done so that we can have a look – user1295308 Dec 08 '20 at 02:38
  • Hi @user1295308 I somehow amange to do validation. Have you implemented 3ds verification also? If yes could you show me how to achieve that? – Gaurav joshi Dec 12 '20 at 05:58

0 Answers0