The task is this: it is necessary to hang up the opportunity to pay with a card on the site. After completing the transaction, you need to find out what amount was transferred and any additional parameters: for example, the last 4 digits of the card, or the email that was specified when paying or at least something ... And display the data on the page. There is a convenient solution that is made in 2 minutes through Yandex money. But there just goes forwarding to the Yandex service where everything is paid, and I could not find the opportunity to get how much and by whom it was translated. Tell me ???

I will add: Let me clarify something else I want to achieve: I hang up a form on a website page with payment from Yandex, the form contains one field for entering the amount and the pay button, when you click on the button, you are redirected to Yandex service - all necessary information is entered (name, address, the payer, card data. The transaction occurs and the output of its result is all on Yandex’s side, then Yandex shows the "return to the store" button, when clicked, the redirect goes to my site). And I actually need that when he returned to my site I could show him on the page that he was done and translated 100 rubles. Congratulations

  • All payment systems have a similar operating principle. Statistics are maintained on the side of the payment system, in your personal account. If you want to keep statistics yourself, then there are callbacks of successful and unsuccessful payment to your working script, which will contain the data you need - sepgg

2 answers 2

Read the documentation for any payment service. Almost all of them when setting up offer you to specify a callback_url is the address to which the payment system will fulfill the request after the successful execution of the payment. There she will send the parameters. No payment system just will not allow you to pull out of yourself the data that you want to get in a different (in any case more simple) scenario due to simple security considerations. I think you yourself would not want that any other option was possible.

    This is called accounting, and work with personal data (not sarcasm). This is really important information. Information about the payment you have in the order (who, how much), information on the status in the "callback" and in your bank.

    Credit Card Information? This is similar to phishing .