0

The code:

$CP->setFormElement('currency', 'LTCT'); 
$CP->setFormElement('amountf',0.0002);   
$CP->setFormElement('item_name', 'Test Item');  
$CP->setFormElement('custom', 'customValue235');  
$CP->setFormElement('ipn_url', 'http://middleman.pw/CoinPayments-master/callback.php');

I still just get the following:

https://i.gyazo.com/91094867c04a69adf3d358dc7b147e90.png

Just to clarify, the user won't be redirected back to my website.

wowkin2
  • 5,895
  • 5
  • 23
  • 66

1 Answers1

0

IPN is for Instant Payment Notification To redirect user after successful payment, use

$CP->setFormElement('success_url', 'http://middleman.pw/CoinPayments-master/callback.php');

From https://www.coinpayments.net/apidoc-create-transaction , success_url Sets a URL to go to if the buyer does complete payment. (Only if you use the returned 'checkout_url', no effect/need if designing your own checkout page.)

Nisse Engström
  • 4,738
  • 23
  • 27
  • 42
John Mfon
  • 37
  • 5