What is the easiest way to integrate PayPal into the registration system?

How to integrate a one-time fee into paypal?

The user clicks SignUp, then takes to the page to confirm t & c, and where they pay £ 50, then if they succeed, they get to the page where they can enter data and create an account ... but I just to This page was visible to users coming from PayPal.

I was thinking about using tokens, but I don't know how to use them.

+3
source share
1 answer

IP- PayPal, , paypal , .

.

  • , , ( , ..).
  • ..
  • Paypal .
  • paypal , , , .

... 1. , , PayPal URL. 2. paypal. 3. Paypal , . 4. .

, . , , , .

[EDIT] URL- PayPal IPN → https://www.paypal.com/ipn

- Dan

[]

. paypal.

    <form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
<input type="hidden" name="rm" value="2" id="PayPalRm" />
<input type="hidden" name="cmd" value="_xclick" id="PayPalCmd" />
<input type="hidden" name="business" value="seller@paypal.account" id="PayPalBusiness" /> 
<input type="hidden" name="return" value="http://localhost/inventories/success" id="PayPalReturn" />
<input type="hidden" name="cancel_return" value="http://localhost/inventories/cancel" id="PayPalCancelReturn" />
<input type="hidden" name="notify_url" value="http://localhost/Paypal_orders/process" id="PayPalNotifyUrl" />
<input type="hidden" name="item_name" value="product name" id="PayPalItemName" />
<input type="hidden" name="quantity" value="1" id="PayPalQuantity" />
<input type="hidden" name="no_shipping" value="2" id="PayPalNoShipping" />
<input type="hidden" name="shipping" value="2.5" id="PayPalShipping" />
<input type="hidden" name="shipping2" value="2.5" id="PayPalShipping2" />
<input type="hidden" name="no_note" value="1" id="PayPalNoNote" />
<input type="hidden" name="lc" value="US" id="PayPalLc" />
<input type="hidden" name="country" value="US" id="PayPalCountry" />
<input type="hidden" name="bn" value="PP-BuyNowBF" id="PayPalBn" />
<input type="hidden" name="amount" value="12" id="PayPalAmount" />
<div class="submit"><input type="submit" value="Click Here" /></div></form>
+9

Source: https://habr.com/ru/post/1715765/


All Articles