Needs work
Project:
Commerce Ogone Terminal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2015 at 15:01 UTC
Updated:
7 Oct 2015 at 07:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sebastien m. commentedThanks to maciej.zgadzaj, I've been able to create this first patch.
There is may be other better implementation, so don't hesitate to contribute this issue.
Comment #3
maciej.zgadzaj commentedThanks for the patch Sebastien! Haven't really had time to look into this before, and even now it was just a quick look, few remarks though:
- you need to make sure that the order used Ogone as the payment method, and actually payment was created using admin terminal (otherwise there is no point in calling
commerce_ogone_redirect_form_submit(),- you need to make sure that this
commerce_ogone_redirect_form_submit()is not called twice when server-to-server notifications are disabled on Ogone side.Attached is an updated patch that should take care of both these things - haven't tested it at all though. Feel like giving it a test ride?
Comment #4
sebastien m. commentedComment #5
sebastien m. commentedWith this patch the order is correctly set to the original customer, however :
- if order is cancelled on ogone platform, order is still set to the temporary customer
- confirmation order mail is sent with temporary customer details (firstname, lastname) instead of real customer