S
S
storm572018-07-25 14:22:33
PHP
storm57, 2018-07-25 14:22:33

How to get paypal express token?

The paypal express plugin has a smart button. If it is enabled, then payment from the checkout page occurs through a modal. In this modal, there is a token that is located both in get (in the address bar) and in the session. How can I pull this token from the modal and save it somewhere on the main payment page? Neither through nor through the session it is not drawn out. If you pay from the card page, then the token can be pulled from GET, as indicated above
$_GET['token']

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
storm57, 2018-07-25
@storm57

Solution found: you can contact $_REQUESTand get a token at the exit from the payment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question