I am integrating the Solid Trust Pay payment gateway. My button is:
<form action="https://solidtrustpay.com/handle.php" method="post" name="form" id="form">
<input type='hidden' name="inf_token" id="inf_token" value="f6f7369316c4928fdceaaed397356f5b"/>
<input type=hidden name='merchantAccount' value='<merchantAccount>' />
<input type='hidden' name='sci_name' value='Pay using STP' />
<input type='hidden' name="amount" value="1" readonly/><br />
<input type='hidden' name="currency" value="USD" />
<input type='hidden' name="testmode" value="ON" />
<input type='hidden' name="item_id" value="8787878" />
<input type='hidden' name="cat_id" value="7" />
<input type='hidden' name="notify_url" value="{my_base_url}/register/stp_payment_notify" />
<input type='hidden' name="confirm_url" value="{my_base_url}/register/stp_payment_success" />
<input type='hidden' name="return_url" value="{my_base_url}/register/stp_payment_return" />
<input type='hidden' name="cancel_url" value="{my_base_url}/register/user_register" />
</form>
I can get a response while paying using credit card, but paying using STP account balance didn't return any response. How can I get a response?
It looks like this code does not belong to any specific SolidTrust Pay account, as the "merchantAccount" field should be the username, not just "merchantAccount" again. Additionally, there is not a proper sci_name; this has to be created inside the SolidTrust Pay account in the MERCHANT ZONE area and is very specific. And finally, your cancel_URL also looks incorrect as what you are showing as your cancel URL references a "user register", but a cancel_URL is what a customer is directed to if they abandon the payment.
For more direct assistance, visit the SolidTrust Pay HELP CENTRE at: support.solidtrustpay.com
Related
Okay, so I have a unique issue with Paypal. I have a payment form that is working just fine. But I want something like, when people hit the payment button from their mobile it would take them straightly to their installed Paypal app to process the payment. For desktop, the browser is okay.
Can anybody help me anyhow with this? I don't even know if this is possible without SDK. I am using simple payment form
<?php
$paypalData = getPaypalData($userid);
$paypalurl = 'https://www.paypal.com/cgi-bin/webscr';
$paypalSandboxurl = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
?>
<form action="<?=$paypalurl;?>" method="post" target="_top">
<input type='hidden' name='business' value='<?=$paypalData['paypal_email'];?>'>
<input type='hidden' name='item_name' value='Booking'>
<input type='hidden' name='item_number' value='12345'>
<input type='hidden' name='user_id' value='<?=$userid;?>'>
<input type="hidden" name='amount' id="depositAmountform" value="">
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='currency_code' value='USD'>
<input type='hidden' name='notify_url' value='<?=$notifyURL;?>'>
<input type='hidden' name='cancel_return' value='<?=$cancelReturnURL;?>'>
<input type='hidden' name='return' value='<?=$successReturnURL;?>'>
<input type="hidden" name="cmd" value="_xclick">
<button type="submit" name=" " id="pay_now">PayPal</button>
</form>
I'm having a weird problem that is very intermittent. In fact, I've never been able to reproduce it on my end, but a variety of customers have experienced it. Typically, it's with mobile IOS - new and old. Basically, when the customer reaches checkout, they click Check Out and they end up on PayPal's login page. No values from the form are passed, as if they just went to PayPal.com. We do get a lot of sales via PayPal, so not sure what percentage has this issues, but want to make sure we capture those sales. Doing a Google, I have seen people mention this, but not seeing any solid solutions.
Here is my form code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="item_name_1" value="Product Test 1" />
<input type="hidden" name="amount_1" value='10.00' />
<input type="hidden" name="quantity_1" value="1" />
<input type='hidden' name='item_number_1' value='' />
<input type="hidden" name="shipping_1" value='8.00' />
<input type="hidden" name="no_shipping" value="2" />
<input type="image" id="PayPalButton" src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-large.png" name="submit" class="wp_cart_checkout_button" alt="Make payments with PayPal - it's fast, free and secure!" />
<input type="hidden" name="return" value="https://www.example.com/thankyou/?a=1" />
<input type="hidden" name="notify_url" value="https://www.example.com/paypal/" />
<input type="hidden" name="business" value="paypal#example.com" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="mrb" value="3FWGC6LFTMTUG" />
<input type="hidden" name="custom" value="cart=58597ef8bdd56c789946533a9c1d0d1c&x=337917&email=test#example.com&ip=6xxx.xxx.xxx.xxx" />
</form>
I've seen people remove target="paypal" and use target="_self". I've only used target="_blank". I don't want to use GET method since I could have lot of variables depending on how large the cart is. Every time I test (desktop, table, phone), the paypal process works. So not sure what is stopping some of the users.
I searched lot but unable to resolved pay pal issue. "
PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem."
here is simple code .
product kit $250
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="paypal">
<input type='hidden' name='business' value='syhunk835#gmail.com'>
<input type='hidden' name='item_name' value='Camera'>
<input type='hidden' name='item_number' value='1'>
<input type='hidden' name='amount' value='0.01'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='currency_code' value='USD'>
<input type='hidden' name='notify_url' value='http://SITE NAME/payment.php'>
<input type='hidden' name='cancel_return' value='http://SITE NAME/cancel.php'>
<input type='hidden' name='return' value='http://SITE NAME/success.php'>
<!-- COPY and PASTE Your Button Code -->
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="### COPY FROM BUTTON CODE ###"><input type="image"src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
</form>
I tried with chf-8 but still same issue. I do not know where is I am wrong.
I am trying to integrate the payment gateway in my PHP based application. For that I am using sandbox.
But after the payment the status is showing pending, though amount has been deducted from the account.
My code is like:
<form name="frm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="sri_1338363856_biz#gmail.com" />
<input type="hidden" name="amount" value="<?php echo get_plan_value($plan_id); ?>" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="item_name" value="<?php echo get_plan_name_by_value($_REQUEST['bus_plan']) ?> Registration" />
<input type="hidden" name="bn" value="PP-BuyNowBF" />
<input type="hidden" name="return" value="http://localhost/uploaded_server_alert/backup/alertR/business/payments-over.php?last_id=<?php echo $lastId; ?>&agent_email=<?php echo $agent_email; ?>&username=<?php echo ($uname); ?>&contact_email=<?php echo $contact_email; ?>" />
<input type="hidden" name="rm" value="2" />
<input type="submit" border="0" name="submit" value="Order Now" alt="Make payments with PayPal - it's fast, free and secure!" class="additional_height" title="Make payments with PayPal - it's fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
How shall I fix the problem?
That's because Payment Review is enabled.
Change it to Disabled in Developer Central -> Test Accounts
Double check your IPN Listener and IPN Handler.
See some sample codes:
http://www.micahcarrick.com/paypal-ipn-with-php.html
http://www.evoluted.net/thinktank/web-development/paypal-php-integration
Problem is that you have not mentioned the notify_url. notify_url is the url where paypal send IPN for authentication of item price, reciever_email, currency etc and notify_url should not be the url of localhost because when you have been redirected to paypal now you are on paypal's domain and after completion of transaction when paypal try to send IPN hit it will get the` ulr of localhost and there is nothing like localhost on paypal.
Write following input tag:
<input type="hidden" id="notify_url" name="notify_url" value="url of ipn listener"/>
in above tag replace value by your ipn listener url.
I am trying to submit the following paypal form through a hosted-payment system. however, it does not seem to be passing through any of the variables apart from the price.
Can anyone see where I am going wrong:
<form action='https://securepayments.paypal.com/cgi-bin/acquiringweb' method='post' target='hss_iframe' id='PayPalForm' name='PayPalForm'>
<input type='hidden' name='cmd' value='_hosted-payment' />
<input type='hidden' name='charset' value='utf-8' />
<input type='hidden' name='currency_code' value='GBP' />
<input type='hidden' name='business' value='seller#email.com' />
<input type='hidden' name='paymentaction' value='sale' />
<input type='hidden' name='template' value='TemplateD' />
<input type='hidden' name='return' value='http://yoursite.com/groupon-success.php' />
<input type='hidden' name='notify_url' value='http://yoursite.com/paypal-groupon- ipn.php' />
<input type='hidden' name='item_name' value='Item name' />
<input type='hidden' name='item_number' value='4' />
<input type='hidden' name='subtotal' value='0.01' />
<input type='hidden' name='custom' value='41' />
<input type='hidden' name='address_override' value='true' />
<input type='hidden' name='first_name' value='Jack' />
<input type='hidden' name='last_name' value='Jones' />
<input type='hidden' name='address1' value='address1' />
<input type='hidden' name='city' value='Manchester' />
<input type='hidden' name='zip' value='M20 1AA' />
<input type='hidden' name='country' value='UK' />
<input type='hidden' name='billing_first_name' value='Jack' />
<input type='hidden' name='billing_last_name' value='Jones' />
<input type='hidden' name='billing_address1' value='address1' />
<input type='hidden' name='billing_city' value='Manchester' />
<input type='hidden' name='billing_zip' value='M20 1AA' />
<input type='hidden' name='billing_country' value='UK' />
</form>
it is then been passed to an iframe which seems to work fine using:
<iframe width="100%" scrolling="no" height="580px" frameborder="no" name="hss_iframe" style="float:right;"></iframe>
<script type="text/javascript">
$(function(){
$("#PayPalForm").submit();
});
</script>
Can anyone help with why this data does not seem to pass anything through
--------------- EDIT
Changed cmd to _xclick and passes through fine, so obviously an issue with _hosted-payment
Can anyone give any ideas
If by "however, it does not seem to be passing through any of the variables", you mean it doesn't display the item name / item number: that's correct. Website Payments Pro Hosted Solution doesn't currently support item details. You should remove these parameters as they're not in use for this product.
In addition, the billing/shipping address will be used, but you won't be able to modify them if you're using templateD.