Skip to content

Payment is not defined (no default checkout) #52

Description

@elachino

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';

};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions