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

Payment is not defined (no default checkout) #52

Open
elachino opened this issue Jun 23, 2017 · 0 comments
Open

Payment is not defined (no default checkout) #52

elachino opened this issue Jun 23, 2017 · 0 comments

Comments

@elachino
Copy link

elachino commented Jun 23, 2017

If you use a no default checkout, like onestepcheckout you have this error and customers can't complete order with credit card, so you have to change this file js/paymill/PaymillHelper.js, function PaymillHelper.prototype.getShortCode = function().

We have chenged it for magestore onestepcheckout

PaymillHelper.prototype.getShortCode = function()
{
var methods = {
paymill_creditcard: "cc",
paymill_directdebit: 'elv'
};

$$('input:checked[type="radio"][name="payment[method]"]').pluck('value');


if ($$('input:checked[type="radio"][name="payment[method]"]').pluck('value')) {
    return methods[$$('input:checked[type="radio"][name="payment[method]"]').pluck('value')];
}

return 'other';

};

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

1 participant