A
A
Adel Khalitov2020-02-08 20:36:28
Payment systems
Adel Khalitov, 2020-02-08 20:36:28

How to integrate with Mastercard geteway?

Good day everyone. I spent a very long time trying to integrate a payment system for one project.
Who faced with this payment system, please help.

Backend on nodejs + 2 client applications ios, android.

I build the payment chain as follows: A page
is generated for the client in a row and sent to applications. Applications open this page in a webview, beforehand, a callback script for 2 applications will be injected there in order to get a response from html. This gives us a session with encrypted data. Next, we create a token and a verification transaction . If the answer is ok, we write the card data to the user in the database.



Then problems begin: When creating a Pay
request , an error occurs:

Missing parameter. value: null - reason: A CSC value is required for the transaction source used for this transaction
, referring to the sourceOfFunds.provided.card.securityCode fields - they say fill in the svs field. Although I have no right to keep it and the like. We are denied authorization.

The initial task is as follows:
1) Save the user's card data. (We made a token, sewed up the data there, but there is an error when trying to pay )
2) Since we tie the payment for a taxi, then the money should be withdrawn at the end of the trip. At the beginning of the trip, we check the availability of the nth amount of money on the card, reserve it.
3) At the end of the trip, we write off the previously reserved amount of money within a certain percentage, if the amount of the trip was donated. Or, ignoring the 2nd point, we immediately call the transaction: Pay method to write off funds.

How to implement everything correctly or how to avoid the problem of requesting CVC from a map?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-02-08
@dimonchik2013

you ca n’t study the CVV
rules
in any way, in the general case you can store it, but the card number in clear text is not, and then the
mentor should give the algorithm - authorization is still needed, either immediately with capture (a la sale) or PreAuth

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question