oc-shopaholic / oc-shopaholic-plugin

🛍️ No. 1 e-commerce platform for October CMS
https://shopaholic.one
GNU General Public License v3.0
426 stars 51 forks source link

[Omnipay] Update `payment_data` and `payment_response` after payment success #98

Closed philmarc closed 6 years ago

philmarc commented 6 years ago

I am using the new events 'shopaholic.payment_method.omnipay.gateway.cancel_url' and the 'success_url' which are great.

But when I pay and get redirected to my website (I am using PayPal Express in sandbox mode), the order status doesn't change eventhough I set it up to be "Complete" or "Cancelled" in the backend.

The payment data (Data that was sent and data that was received from payment gateway) are also not filled in. transaction_id, payment_data, payment_response

Where is the logic for updating an order after payment success/cancellation ? It would be great to update your Shopaholic demo theme with a working payment gateway (PayPal is the one we all want).

One last thing about the last update is the payment method edit page in the backend: There are many new fields firstName, billingAddress1, shippingCountry, ... but I am not sure what the purpose of those are, since that data is already present in the lovata buddies additional properties. It would be nice to have a field for cancelUrl and returnUrl on that page though.

I really enjoy your plugins, and my website is almost ready to go to production, I just have to make that order update after payment.

Thanks for your help.

kharanenka commented 6 years ago

Hi! I now prepare to release plugins for full integration with PayPal and Stripe. Please wait few more days.

philmarc commented 6 years ago

Here are some ideas that could be nice to have in the Shopaholic plugin:

Maybe a "Track my order" plugin?

kharanenka commented 6 years ago

Hi! Good ideas! We plan to release plugin with integration of tracking service. Can you create issues for each idea so that we do not lose them?

P.S. PayPal for Shopaholic plugin will be sent for moderation tomorrow. I just wait for icon from designer.