6 votes
Accepted

Transaction Error Message in Template

The error messages are returned to the template as flash messages. Handling those is documented here: https://craftcms.com/docs/templating/craft.session One thing to watch out for is that flash ...
user avatar
2 votes
Accepted

Craft Commerce - Purchasables and multiple gateway accounts

You wouldn't need to dynamically change the Stripe credentials on the Stripe payment method, rather it is more likely you would set up a seperate Stripe payment method for each Stripe account. It is ...
user avatar
  • 6,637
2 votes

Simple PayPal connection with Craft?

Depends on your requirements, but seems like you'd just be able to use the standard PayPal checkout button for this, no? https://www.paypal.com/us/webapps/mpp/paypal-payments-standard
user avatar
  • 66.4k
2 votes
Accepted

Handoff to Paypal Express with Craft Commerce

There is most likely some error in your configuration, or what you're sending to the cart. The following code (when in devMode) will show you any errors that are coming back from Commerce/Paypal when ...
user avatar
2 votes
Accepted

CSRF Token not verified with actual gateway in Craft Commerce

Welp... I feel like an idiot. It wouldn't let it through because I didn't set the endpoints found at https://craftcommerce.com/docs/payment-gateways
user avatar
2 votes
Accepted

Payment Method and Discount elements query by ID in Twig

Commerce 1: {% set paymentMethod = null %} {% for pm in craft.commerce.paymentMethods %} {% if pm.id == 2 %}{% set paymentMethod = pm %}{% endif %} {% endfor %} {{ paymentMethod.name }} ...
user avatar
  • 6,637
2 votes
Accepted

Adding second option on payment-method (buying without paying, getting physical invoice with order (pay on account))

You want to look at Commerce's 'manual' gateway. This is a gateway that let's you receive unpaid orders, which you can then process as you see fit, including manually 'capturing' the payment when it ...
user avatar
2 votes
Accepted

Craft Commerce payment methods per user

There are a variety of ways you can solve this depending on your needs. One possible way would be to assign users to groups and then use simple twig code to limit the shown payment options at the ...
user avatar
1 vote
Accepted

How to set environment variables based site

Minutes after posting, came up with the answer, why didn't I think of this solution before. Rather than switching out API Keys, instead, I'm creating multiple payment gateways. Then conditionally ...
user avatar
  • 403
1 vote

PayPal Pro In Craft Commerce

Have you tried looking at commerce.log in storage/logs? (With Craft 3/Commerce 2 there is no commerce.log - you'll need to comb through the general web.log)
user avatar
  • 2,437
1 vote
Accepted

Upgraded to Craft 3 and lost my Commerce Gateways

Commerce 2 moved all payment gateways to plugins. You can see the relevant bit in the docs here: https://docs.craftcms.com/commerce/v2/payment-gateways.html There are currently seven 1st party ...
user avatar
  • 66.4k
1 vote
Accepted

Authorize.net not connecting in Craft Commerce?

That error is from the cart service when trying to set the payment method ID on the cart during payment. There are 2 possible reasons the error would appear: 1) The payment ID you are submitting is ...
user avatar
  • 6,637
1 vote

Using PayPal Standard with Craft Commerce

Craft Commerce uses Omnipay for its payment processing library. Here's a list of the Omnipay officially supported 1st party gateways: https://github.com/thephpleague/omnipay#payment-gateways Omnipay:...
user avatar
  • 66.4k
1 vote
Accepted

Payment form submission is returning a curl error! ([curl] 3: <url> malformed [url])

For those interested, here was the solution: The payment method for Authorize.net wasn't completely filled in; there was no endpoint set. Thus, it was of course failing when it sent the curl request, ...
user avatar
1 vote
Accepted

Commerce PaymentGateway configuration

Craft Commerce 1.2.1238 added support for the REST based Multi-Safepay gateway.
user avatar
  • 6,637
1 vote
Accepted

Create an alternate Stripe Payment Method

A no one has come forward and told me it's a bad idea, I've ploughed on and done the following: Created my own Controller action in my plugin to bypass the payment side of things altogether. I didn't ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible