J
J
jazzus2019-09-24 08:43:19
PayPal
jazzus, 2019-09-24 08:43:19

Does PayPal have an official html post form?

I found only js in the docks. Is there a form with plain html? Like Yandex wallet. Where he indicated the necessary data in the inputs and sent the client to the paypal site where he can already pay himself. Without their js popups. I have js and windows myself and I need regular html. Found a form on google on some site

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
        <div>
            <label for="amount">Amount for transfer</label>
            <input id="amount" type="text" />
        </div>
        <input type="hidden" name="cmd" value="_donations" />
        <input type="hidden" name="charset" value="utf-8" />
        <input type="hidden" name="bussiness" value="[email protected]" />
        <input type="hidden" name="item_name" value="Item short name" />
        <input type="hidden" name="currency_code" value="USD" />
        <input type="hidden" name="undefined_quantity" value="1" />
        <input type="hidden" name="return" value="https://site.com/" />
        <input type="hidden" name="cancel_return" value="https://site.com/" />
        <input type="hidden" name="notify_url" value="https://site.com/paypal/result" />
        <input type="hidden" name="custom" value="userId:1|orderId:25" />
        <input type="hidden" name="button_subtype" value="services" />
        <input type="hidden" name="no_note" value="1" />
        <input type="hidden" name="no_shipping" value="1" />
        <input type="hidden" name="rm" value="" />
        <div>
            <input type="submit" value="Transfer" />
        </div>
    </form>

but this is not documentation. Interested in the official version from paypal.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2019-09-24
@jazzus

Iframe - No.
https://www.paypal.com/us/smarthelp/article/can-i-...
Form - yes https://developer.paypal.com/docs/classic/paypal-p...
Another option is possible with by going to the PayPal page and redirecting back after the payment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question