payment-gateway

Hide payment method based on product type in WooCommerce

守給你的承諾、 提交于 2021-02-16 03:56:53
问题 In WoCommerce, I would like to disable particular payment methods and show particular payment methods for a subscription products in WooCommerce (and vice versa). This is the closest thing we've found but doesn't do what I am expecting. Yes, there are plugins that will do this but we want to achieve this without using another plugin and without making our stylesheet any more nightmarish than it already is. Any help on this please? 回答1: Here is an example with a custom hooked function in

Hide payment method based on product type in WooCommerce

↘锁芯ラ 提交于 2021-02-16 03:56:00
问题 In WoCommerce, I would like to disable particular payment methods and show particular payment methods for a subscription products in WooCommerce (and vice versa). This is the closest thing we've found but doesn't do what I am expecting. Yes, there are plugins that will do this but we want to achieve this without using another plugin and without making our stylesheet any more nightmarish than it already is. Any help on this please? 回答1: Here is an example with a custom hooked function in

Hide payment method based on product type in WooCommerce

帅比萌擦擦* 提交于 2021-02-16 03:54:00
问题 In WoCommerce, I would like to disable particular payment methods and show particular payment methods for a subscription products in WooCommerce (and vice versa). This is the closest thing we've found but doesn't do what I am expecting. Yes, there are plugins that will do this but we want to achieve this without using another plugin and without making our stylesheet any more nightmarish than it already is. Any help on this please? 回答1: Here is an example with a custom hooked function in

How to get transaction details in notify_url page in paypal

筅森魡賤 提交于 2021-02-11 14:58:42
问题 In paypal notify_url page I am not getting any values when I use cmd value as _cart.How can I get the transaction details in notify_url page <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST" name="_xclick" id="paypal_form"> <input type="hidden" name="upload" value="1" /> <input type="hidden" name="cmd" value="_xclick" /> <!-- The business email address, where you want to receive the payment --> <!--<input type="hidden" name="business" value="yesidealpayment@gmail.com"

Stripe Payment gateway throws an exception on live server working fine on local server

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 14:57:10
问题 I am facing an issue on stripe payment gateways. I have integrated stripe payment using their library given at Github and following Stripe Documentation On first step i setup API key using secret key, then i created customer finally i charged that particular customer. Full Code \Stripe\Stripe::setApiKey( $stripe_secret_key ); try { $customer = \Stripe\Customer::create(array( "source" => $stripeToken, "email" => $user_email ) ); $stripe_user_id = $customer->id; // charge customer by customer

How do Integrate eWay Payment System in PHP

房东的猫 提交于 2021-02-11 13:48:25
问题 I have followed the document site https://eway.io/api-v3/ to integrate the Payment system into my PHP application. And I run the command composer require eway/eway-rapid-php from terminal in the application. After that I load autoload.php . Now I want to send customer into eWay payment site for choose payment method(paypal, CC) as well as paypal/CC information. So that customer can feel that they are paying by eWay payment gateway. I have the following code into my controller method ::

How to calculate product price after adding payment gateway commission to it?

橙三吉。 提交于 2021-02-10 18:17:40
问题 We have an item to sell worth around $100. There is a 5% tax applicable to it. A third party payment gateway takes a commission of 3% of total amount given to gateway (ie., 3% of 100+5%). Since its not possible to charge 3% payment gateway commission customer, we hide this extra commission under item price. So the price should be increased from 100 to an "X" amount. (100 + 5% tax) + 3% Commission = (X + 5% Tax) ; Please note when increase amount from X + 5% Tax, the commission also increases.

How to calculate product price after adding payment gateway commission to it?

北城以北 提交于 2021-02-10 18:12:21
问题 We have an item to sell worth around $100. There is a 5% tax applicable to it. A third party payment gateway takes a commission of 3% of total amount given to gateway (ie., 3% of 100+5%). Since its not possible to charge 3% payment gateway commission customer, we hide this extra commission under item price. So the price should be increased from 100 to an "X" amount. (100 + 5% tax) + 3% Commission = (X + 5% Tax) ; Please note when increase amount from X + 5% Tax, the commission also increases.

Authorize.net Java SDK(2.0.1v) Environment not set issue

半世苍凉 提交于 2021-02-10 06:09:37
问题 I am using Authorize.net as a Payment vendor in my application. After getting form token from Mobile SDK, I am using their Java SDK in Backend to initiate Payment. But I am getting the following issue while using CreateAnAcceptPaymentTransaction class from Authorize.net Java SDK(v2.0.1). Environment not set. Set environment using setter or use overloaded method to pass appropriate environment The controller object in the below line has the error. CreateTransactionController controller = new

XML request is not well-formed or request is incomplete

﹥>﹥吖頭↗ 提交于 2021-02-07 07:56:13
问题 We are using virtual merchant payment gateway in our application: https://www.myvirtualmerchant.com/VirtualMerchant/download/developerGuide.pdf I am trying to record a CCSALE transaction but I keep getting this error: <?xml version="1.0" encoding="UTF-8"?> <txn><errorCode>6042</errorCode><errorName>Invalid Request Format</errorName><errorMessage>XML request is not well-formed or request is incomplete.</errorMessage></txn> The XML I am passing in request in Fiddler POST is: <txn> <ssl_merchant