Answer the question
In order to leave comments, you need to log in
How to generate payment token in wordpress?
Good afternoon, in general a subject.
How to properly organize payments from a security point of view (not woocommerce, paid subscription on the site). In general, I'm interested in the moment with a fake callback response by an attacker, for this I want to create a unique payment token that will be checked in the callback script and now I'm thinking about how best to organize this on wp.
Answer the question
In order to leave comments, you need to log in
I think it's worth starting with such a thing as an Order. Any sites that have a more or less intelligible subscription mechanics have Orders in one form or another. Whether it's WooCommerce or LiterLMS (there are purely subscriptions and courses).
In any case, everything revolves around Orders. The user creates an Order. Further pays.
If this is a payment through Yandex Checkout or Wallet, then the token is sewn into the gateway panel. And the site should check it. If it matches, then consider the payment went through.
If payment is made by hand, for example, through payment on a card or in cash, then the admin pokes the order with his hands in the admin panel. After that, the Order is considered paid and then the rest of the logic dances from this.
Something like this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question