Questions tagged [payment-method]
144 questions
1
vote
1 answer
How to make Payment Method set as default in stripe after one time checkout payment
Payment Method of a customer After checkout the payment method gets saved in the customer dashboard. How to make that Payment method set as default using API calls or is there any way to make it default at the first place when there is a successful…

Danish Sharma
- 77
- 1
- 4
1
vote
1 answer
What does the `payment_behavior: 'default_incomplete',` line does to invoices in stripe?
I'm trying to sort out how, when creating a subscription, stripe generates invoices with no payment method attached to them and yet able generate a client_secret through a payment intent. Does the payment_behavior: 'default_incomplete' field in…

Alan Kersaudy
- 739
- 7
- 15
1
vote
2 answers
Change payment method title based on selected shipping method in WooCommerce checkout
I`m trying to make a switch on (COD) cash on delivery label if the delivery option is selected
The user has 2 options on delivery:

Alex
- 13
- 2
1
vote
1 answer
Highlight WooCommerce admin orders list based on order payment method
I'm looking for a way to highlight the admin order list line based on the order payment method. (specifically for COD - cash on delivery)
Based on Highlight Woocommerce admin orders list when order contains a regular product anwser code, I wrote the…

s011420
- 33
- 3
1
vote
1 answer
How can I add the icon corresponding to each payment method that is saved in a WooCommerce user's account?
I am looking for the saved payment methods section, to include the icon of each of the cards that users use (Visa, Master card, Amex) how could I add this to WooCommerce?
Current payment method section:
enter image description here
Final idea:
enter…

Mario Sosa
- 57
- 3
1
vote
1 answer
Stripe Payment Method shows payment incomplete "required_payment_method"
Here is my implementation
const paymentIntent = await stripe.paymentIntents.create({
amount: body.amount,
currency: 'gbp',
customer: customerId,
automatic_payment_methods: {
enabled: true,
},
…

Shrey Banugaria
- 122
- 8
1
vote
1 answer
Order split with online transaction on checkout in magento 2.4 enterprise
I'm facing one issue while splitting the order on checkout. I followed these code mentioned in the…

sushant kumar
- 41
- 3
1
vote
1 answer
Add custom message according to payment method in WooCommerce customer processing order email notification
I'm adding a text with a hook for the email, but I'd like it to change according to the payment method.
My code attempt:
add_action( 'woocommerce_email_before_order_table', 'bbloomer_add_content_specific_email', 20, 4 );
function…

Greg Minaya
- 139
- 1
- 2
- 10
1
vote
1 answer
Payment methods not showing if cart total is 0 in WooCommerce
I'm setting up a store for a client with multiples user roles. One of them need to have prices of 0$ because the company's billed monthly. Others roles have to pay differents prices with multipliers depending on their roles using "Product Price by…

Vinnie
- 21
- 6
1
vote
1 answer
Change payment method title for specific products in WooCommerce checkout
I'm trying that, when a specific product is in the checkout, the title of the payment method changes from; for example: "Payment by card" to "Payment in parts", is it possible?
I have tried with jquery:
jQuery(function($){
if (…

Typical Spanish
- 13
- 3
1
vote
1 answer
WooCommerce Disallow ClearPay Payment for specific product categories
I am trying to disable ClearPay payment method for specific product categories.
I managed to hide the ClearPay options for the shop and product page, but it still allows me to use ClearPay in the cart.
This is the code I have used:
/**
* @param…

user2803146
- 137
- 3
- 14
1
vote
1 answer
Change payment card icons for WooCommerce Stripe in checkout
I would like to sort the Stripe displayed payment card icons in a different way in WooCommerce checkout.
WooCommerce Stripe plugin support does not provide custom code support so they just gave me a code snippet to modify according to my needs.…

JOKKER
- 502
- 6
- 21
1
vote
1 answer
WooCommerce custom payment gateway: Just show an extra fee based on total order
I am using WooCommerce and Woocrypt and in the payment gateway for bitcoins I have added the following code in my gateway:
Amount
get_total(); ?>
Ex,…

Boggie
- 75
- 4
1
vote
1 answer
Move BACS bank details after customer details in WooCommerce emails
how can i move BACS Bank Details in Woocommerce Mail Template "customer-processing-order.php".
I want to remove/move it from
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
And and it after
do_action(…

Monkey D. Luffy
- 21
- 1
- 3
1
vote
0 answers
ApplePay integration for Production
In production, ApplePay is not deducting amount from real card, app is live, still working like sandbox, what we should for production?
let request = PKPaymentRequest()
request.merchantIdentifier = MerchantIdentifier
request.supportedNetworks =…

hargovind
- 11
- 3