Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey there :)
We have orders that can become zero so we want to sent them pass the payment gateway and just do a direct payment method.
How do i change the payment method through the code ?
Could just be in razor.
Use the TeaCommerce.Base.SetPaymentMethod( id )
Kind regardsAnders
Or if in the C# API and not a web session. Then:
order.PaymentMethodId = 2;order.Save();
Thx Anders :)
So, how do i know/set the default payment method, cant see anything in the config or in the TC backend
You set the default shipping method at the country level. So load the country and get the default payment method id.
awesome !
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
TC v1 How do i change the payment method in use?
Hey there :)
We have orders that can become zero so we want to sent them pass the payment gateway and just do a direct payment method.
How do i change the payment method through the code ?
Could just be in razor.
Use the TeaCommerce.Base.SetPaymentMethod( id )
Kind regards
Anders
Or if in the C# API and not a web session. Then:
order.PaymentMethodId = 2;
order.Save();
Thx Anders :)
So, how do i know/set the default payment method, cant see anything in the config or in the TC backend
You set the default shipping method at the country level. So load the country and get the default payment method id.
awesome !
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.