Hello There, Guest! › Register

Hide Content 1.4 released.
Looking for a custom plugin for your site? Ask here for a quote.

Mysubscriptions price not being sent in request
#1

Quote:if($mybb->settings['mysubscriptions_paypal_email'] != '')
{
$sub['button'] = '
<form action="https://www'.$sandbox.'.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="'.$mybb->settings['mysubscriptions_paypal_email'].'">
<input type="hidden" name="currency_code" value="'.$mybb->settings['mysubscriptions_paypal_currency'].'">
<input type="hidden" name="notify_url" value="'.$mybb->settings['bburl'].'/mysubscriptions_paypal2.php" />

<input type="hidden" name="item_name" value="'.$sub['btitle'].'" />
<input type="hidden" name="item_number" value="'.$sub['sid'].'" />
<input type="hidden" id="custom_pp_'.(int)$sub['sid'].'" name="custom" value="'.$sub['custom'].'" />
<input type="hidden" id="amount_pp_'.(int)$sub['sid'].'" name="amount" value="'.$sub['price'].'">

<input type="hidden" name="no_shipping" value="1" />

<input type="hidden" name="return" value="'.$mybb->settings['bburl'].'/" />
<input type="hidden" name="cancel_return" value="'.$mybb->settings['bburl'].'" />
<input type="hidden" name="no_note" value="1">

<input type="hidden" name="image_url" value="'.$theme['logo'].'" />

<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">

</form>
<br />
';
}

if($mybb->settings['mysubscriptions_coinpayments_merchantid'] != '')
{
$sub['button'] .= '<form action="https://www.coinpayments.net/index.php" method="post">
<input type="hidden" name="cmd" value="_pay">
<input type="hidden" name="reset" value="1">
<input type="hidden" name="merchant" value="'.$mybb->settings['mysubscriptions_coinpayments_merchantid'].'">
<input type="hidden" name="item_name" value="'.$sub['btitle'].'">
<input type="hidden" name="item_number" value="'.$sub['sid'].'">
<input type="hidden" name="custom" id="custom_cp_'.(int)$sub['sid'].'" value="'.$sub['custom'].'">
<input type="hidden" name="currency" value="'.$mybb->settings['mysubscriptions_coinpayments_currency'].'">
<input type="hidden" name="amountf" id="amount_cp_'.(int)$sub['sid'].'" value="'.$sub['price'].'">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="allow_quantity" value="0">
<input type="hidden" name="want_shipping" value="0">
<input type="hidden" name="success_url" value="'.$mybb->settings['bburl'].'/">
<input type="hidden" name="cancel_url" value="'.$mybb->settings['bburl'].'/">
<input type="hidden" name="ipn_url" value="'.$mybb->settings['bburl'].'/mysubscriptions_coinpayments.php">
<input type="hidden" name="allow_extra" value="0">
<input type="image" src="https://www.coinpayments.net/images/pub/buynow-wide-blue.png" alt="Buy Now with CoinPayments.net">
</form>
<br />';
}
here is upgrade.php

This is my request
'
  1. cmd:
    _pay

  2. reset:
    1

  3. merchant:
    194f2f6b813ac16ddc49eea3df11141b

  4. item_name:
    Premium

  5. item_number:
    1

  6. custom:
    1

  7. currency:
    USD

  8. amountf:


  9. quantity:
    1

  10. allow_quantity:
    0

  11. want_shipping:
    0

  12. success_url:
    https://ogstash.com/

  13. cancel_url:
    https://ogstash.com/

  14. ipn_url:
    https://ogstash.com/mysubscriptions_coinpayments.php

  15. allow_extra:
    0

  16. x:
    98

  17. y:
    10
'
Reply

Unfortunately you do not have sufficient rights to view replies in this thread. For full access, consider upgrading.





Users browsing this thread: 1 Guest(s)