Post by Rainforest » Tue Dec 05, 2017 5:51 am

So, I had an issue with getting Amazon Pay to work with my site. Thankfully it did (even though the formatting with Journal 2 is awful).
However, here is an issue and I'm wondering if anyone has figure it out.

When I ran a test order. My authorization was for a lot more. I realized that what was being transferred over to Amazon pay was the total of the order + the reward points being earned.

So for example:
Order Total: $10.00
You Earn: 5 reward points

Amazon Pay would authorize $15.00

Anybody know how to fix this?

Thank you!

Self Taught Opencart User & Developer Since 2010.


User avatar
Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am

Post by straightlight » Fri Dec 08, 2017 11:09 pm

No OC version posted. So far, in the latest version of OC, the order totals are already implemented in the amazon login pay controller file. With the vouchers enabled, the total should already be reflected on the bill with the specified voucher module.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Sat Dec 09, 2017 1:08 am

In addition, ensure your admin - > extensions - > events page contains the vouchers notification rather than an empty page. Something I did noticed in the v2.3.0.2 release. If empty, then in your PHPMyAdmin, go to your event table. Use this query in your SQL tab on the right-end side in your Opencart database:

Code: Select all

INSERT INTO `oc_event` (`event_id`, `code`, `trigger`, `action`) VALUES
(1, 'voucher', 'catalog/model/checkout/order/addOrderHistory/after', 'extension/total/voucher/send');
Note: Replace the: oc_ database table prefix with your modified one if you're using a different prefix.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 6 guests