Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When setting paymentCurrency on the final payment form. Throw exeception #809

Closed
bighoho123 opened this issue Apr 2, 2019 · 1 comment
Closed

Comments

@bighoho123
Copy link
Contributor

bighoho123 commented Apr 2, 2019

Description

So in the final step, I would like to charge user in a different currency from the primary one. Because the PaymentsController will always make sure the currency is up-to-date. The only way to do it seems to be that we have an input called 'paymentCurrency' in the final submission form.

However, it will throw exception

yii\base\UnknownMethodException: Calling unknown method: craft\commerce\services\Carts::setPaymentCurrency() in /vendor/yiisoft/yii2/base/Component.php:300

Steps to reproduce

Additional info

  • Craft Commerce version: 2.1.2
  • PHP version: 7.2.5
@lukeholder
Copy link
Member

Thanks fixed for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants