cartridge-payments icon indicating copy to clipboard operation
cartridge-payments copied to clipboard

Invalid logic in PaypalSubmissionForm

Open dunric opened this issue 10 years ago • 1 comments

Cartridge ver. > 0.8.4 up to current does not save order in database until last checkout step is executed. PaypalSubmissionForm from cartridge-payments.payments.multipayments.forms ignores this logic and saves session data in its constructor during its instantiation, ie. before payment form is submitted. User can push back-button to update billing/shipping data, but those changes don't get reflected as PaypalSubmissionForm retrieves old data from a database, not current from a session.

A bug ? An intended behavior ?

dunric avatar Jul 29 '15 17:07 dunric

Definitely sounds like a bug. If you want to implement a fix, I will review it and merge it in.

joshbatchelor avatar Jul 29 '15 18:07 joshbatchelor