payment-gateway

Disable specific payment methods depending on Woocommerce order status

爱⌒轻易说出口 提交于 2020-08-20 03:56:42
问题 I made a two-step payment on the site. Payment occurs after confirmation of the order by the manager. First, the user selects the payment method "for confirmation"(renamed "cash on delivery") and pay only after receiving the invoice for payment. On the checkout page, I hide paypal via js. I would like paypal to be hidden when on-hold status. When the status of "Pending payment" is disabled "for confirmation"(renamed "cash on delivery") and payment via paypal is available. 回答1: Update July

Remove cancel button from WooCommerce My account Orders conditionally

不羁的心 提交于 2020-08-19 05:26:09
问题 I want to make sure the cancel button is not visible in my-account> my-order when 'Payment Method Title' is 'Npay'. The 'Npay' is an external payment gateway and does not work with the commerce. Therefore, payment cancellation must be done externally only. add_filter('woocommerce_my_account_my_orders_actions', 'remove_my_cancel_button', 10, 2); function remove_my_cancel_button($actions, $order){ if ( $payment_method->has_title( 'Npay' ) ) { unset($actions['cancel']); return $actions; } } 回答1:

Show hide payment gateways based on backordered items in Woocommerce

倖福魔咒の 提交于 2020-06-26 14:05:32
问题 I'm need to hide paypal when there's any backordered item on cart or hide cod if there's not any item to be backordered. My problem here is if there's a item that's backorder together with one that is not, I end up whitout a payment processor add_filter( 'woocommerce_available_payment_gateways', 'backordered_items_hide_cod', 90, 1 ); function backordered_items_hide_cod( $available_gateways ) { // Only on front end if ( is_admin() ) return; // Loop through cart items foreach( WC()->cart->get

Losing user cookies and session data after being redirected from payment gateway

寵の児 提交于 2020-06-26 03:58:40
问题 I am using ASP.net MVC5 for my e-commerce project . I am not using any SSL . I have also successfully integrated the payment gateway. The problem i am facing is that while i am posting data to the payment gateway it process the payment and send backs the response to our web application action method the user gets logged out i.e. User.idenity sets back to null . I think it occurs beacuse of HTTP to HTTPS connection as every gateway uses https as a security. and after getting redirected to

Losing user cookies and session data after being redirected from payment gateway

为君一笑 提交于 2020-06-26 03:58:33
问题 I am using ASP.net MVC5 for my e-commerce project . I am not using any SSL . I have also successfully integrated the payment gateway. The problem i am facing is that while i am posting data to the payment gateway it process the payment and send backs the response to our web application action method the user gets logged out i.e. User.idenity sets back to null . I think it occurs beacuse of HTTP to HTTPS connection as every gateway uses https as a security. and after getting redirected to

Why I am getting 'insufficient funds' when trying Stripe Transfers even though I added TEST mode funds in my Account?

别等时光非礼了梦想. 提交于 2020-06-01 05:17:25
问题 I am Stripe for storing Funds and transfer funds to sellers using Stripe Connect My problem is , when I tried to transfer a fund from my Stripe account to a connected account (fund is in test mode) , I am getting following error curl https://api.stripe.com/v1/transfers -u sk_test_gjcwEVcKNBSBPQZxk9GdgwkX: -d amount=100 -d currency=gbp -d destination=acct_1EMBnXEZ0uftLeW4 -d transfer_group=ORDER_95 { "error": { "code": "balance_insufficient", "doc_url": "https://stripe.com/docs/error-codes

Why I am getting 'insufficient funds' when trying Stripe Transfers even though I added TEST mode funds in my Account?

限于喜欢 提交于 2020-06-01 05:17:05
问题 I am Stripe for storing Funds and transfer funds to sellers using Stripe Connect My problem is , when I tried to transfer a fund from my Stripe account to a connected account (fund is in test mode) , I am getting following error curl https://api.stripe.com/v1/transfers -u sk_test_gjcwEVcKNBSBPQZxk9GdgwkX: -d amount=100 -d currency=gbp -d destination=acct_1EMBnXEZ0uftLeW4 -d transfer_group=ORDER_95 { "error": { "code": "balance_insufficient", "doc_url": "https://stripe.com/docs/error-codes

Flutter Webview Form Post

纵然是瞬间 提交于 2020-05-29 11:59:26
问题 Below is code in PHP for PayU Payment gateway integration. Payment Gateway is opened via a Post form submit and form action is url https://sandboxsecure.payu.in Using Webview we can redirect to https://sandboxsecure.payu.in. but need to send the data as well. Can we create similar flow in flutter web? Possible flow Flutter Web --- > Submit form and open webview to show PayU Page --> After payment come back to flutter web note - Hash generation will be done via third party API. <?php $MERCHANT

Remove some payment gateways if any coupon code is applied in Woocommerce

╄→尐↘猪︶ㄣ 提交于 2020-05-28 04:33:06
问题 I started to work on small Woocommerce project. I have 3 payment gateways into this store: Paypal, Credit Card and Direct bank Transfer. What I would like is: If coupon code is used, I would like to disable (or remove) Paypal and Credit Card from available payment gateways, and just keep "Direct bank Transfer" as available payment gateway choice. To show how is look current state from checkout page: I found a similar solution, but this is for removing gateway based on product category. add