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

Context model does not have Order #46

Open
didacrios opened this issue May 13, 2021 · 0 comments
Open

Context model does not have Order #46

didacrios opened this issue May 13, 2021 · 0 comments

Comments

@didacrios
Copy link
Contributor

I think this should not be used, Context does not have $order

To get the payment information you should use the Cart method getOrderTotal()

$payment->amount = static::fixAmount($context->order->getTotalPaid(), $context->currency->iso_code);

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

No branches or pull requests

1 participant