Questions tagged [payment-method]

144 questions
30
votes
3 answers

How to check payment method on a WooCommerce order by id?

I want to make some changes if the chosen payment method is COD. On existing WC_Order i have used ($order->payment_method_title == 'Cash On Delivery' ? ... : ... ); to retrieve the title. But i would like to check against the id (cod) because the…
belfort1
  • 887
  • 2
  • 8
  • 14
7
votes
3 answers

WooCommerce change order status BACS processing

In WooCommerce any order placed with the BACS (direct bank transfer) is set to "on-hold". How would one go about changing this automatically to processing? I wan't it to work inside the functions.php I have the following code but that doesn't…
Tristan .L
  • 829
  • 3
  • 9
  • 20
6
votes
1 answer

How to remove payment method from WooCommerce order confirmation email?

We've removed the payment information on our customer emails but can't remove the title. How do we do it?We're using Woocommerce email templates for order confirmation emails. We've searched in and tried to…
6
votes
1 answer

Adding a custom field to BACS account fields without overriding core files

I have this situation - I made a changes in one of the woocommerce email templates, but I`m sure - these changes will be lost after next woocommerce update. As I know, I should use theme functions to bypass this problem. This is the code before…
6
votes
2 answers

Woocommerce - How to send custom emails based on payment type

Here is the problem. My woocommerce website has 3 different payment options - Check Payment Western Union Cash On Delivery If my buyer checkout with "Check Payment" I want to send him an automated email that outlines the steps to make a check…
Adam
  • 657
  • 2
  • 9
  • 22
5
votes
1 answer

Paypal: PHP SDK Error Incoming JSON request does not map to API request

I'm using PHP Paypal SDK: https://github.com/paypal/PayPal-PHP-SDK Referred PayPal REST API through PHP SDK return "Incoming JSON request does not map to API request" In continue with…
Jackson
  • 1,426
  • 3
  • 27
  • 60
5
votes
1 answer

magento skip payment method from checkout

I have magento EE 1.14.2 setup my client don't want any payment method now. How can I skip payment method from checkout process. I just want to place order without selection payment method. Any suggestion welcome in advanced.
Nilu Khair
  • 68
  • 1
  • 7
4
votes
1 answer

Stripe adding paymentMethod to trial subscription and later validate credit card

I'm working on stripe integration with react node.js While creating a subscription without trial, I have no issues, and all use-cases are much simple. But, I'm trying to create free trial without collecting credit card details, later when trial…
Oron Bendavid
  • 1,485
  • 3
  • 18
  • 34
4
votes
3 answers

Change COD default order status to "On Hold" instead of "Processing" in Woocommerce

I need help with a problem-related to plugin "WooCommerce Pay for Payment" which counting some extra fee in shipping. Problem is, that this plugin sets automatically "processing" status in order which causes thanking email for payment (in case of…
Jiří Prek
  • 83
  • 2
  • 8
4
votes
1 answer

Get custom payment gateway data as settings in Woocommerce 3

I'm making a custom payment gateway. The complex parts are going fine but I've now been stuck on something stupid for hours. I've created custom settings for the gateway without issue, they can be set and saved, but I can't figure out how to recall…
4
votes
2 answers

WooCommerce order-received redirect based on payment method

Usually in WooCommerce submitted orders are redirect to /order-received/ once payment is completed. Is it possible to redirect customer to a custom page for a particular payment method? For example: Payment method 1 -> /order-received/ Payment…
McNaldo
  • 41
  • 1
  • 3
4
votes
2 answers

How to get all order payment method information in magento2

I try to get order related information like order status, total amount, payment method etc. I got order status using $_order->getStatusLabel(); But how I get payment method-related information in Magento 2.
ARVIND KARKAR
  • 282
  • 4
  • 6
  • 19
4
votes
4 answers

Add fee based on specific payment methods in WooCommerce

In WooCommerce I need to apply a custom handling fee for a specific payment gateway. I have this piece of code from here: How to Add Handling Fee to WooCommerce Checkout. This is my code: add_action(…
Giannis Dallas
  • 648
  • 2
  • 8
  • 27
4
votes
1 answer

Braintree API: How can I tell which payment_method is associated with my nonce?

Background: I create a braintree customer with firstName, lastName and email I use the dropin ui in checkout form and it creates a payment_method and token and sends me a nonce. Good so far. I need to add a billing address to the payment_method…
Sy Moen
  • 124
  • 2
  • 11
3
votes
1 answer

Is there a way to add payment for a group in gitlab?

I have a group in gitlab for my dev team, all repositories are within a group but in order to run pipelines gitlab asks for payment method to any of my team members, is there a way I can add payment method for the whole group so my team mates are…
Alkaid
  • 81
  • 6
1
2 3
9 10