saucal / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
0 stars 1 forks source link

Adds an Additional way of identifying order id on amazon return #150

Closed dpanta94 closed 2 years ago

dpanta94 commented 2 years ago

All Submissions:

Changes proposed in this Pull Request:

Provides an additional method of identifying the order id , for which we need to complete the checkout session. Introduces 2 new filters. apa_merchant_metadata_reference_id - For enabling merchants to alter the merchantReferenceId provided to Amazon apa_merchant_metadata_reference_id_reverse - For those merchants that use the above, or alter the plugins default value for merchantReferenceId in any way, a way to provide the order id back to the plugin.

Closes woo#134 .

How to test the changes in this Pull Request:

This issue was not reproducible, logs we saw from various merchant sites suggested that on the method handle_return sometimes the WC()->session->order_awaiting_payment variable was not set.

Other information:

Changelog entry

Add - Additional way of identifying order id after amazon update_checkout_session Add - 2 new filters. Control over the value of merchantReferenceId provided to Amazon, but also a way to retrieve the original.

dpanta94 commented 2 years ago

opened pr in woo repo pull#167

dpanta94 commented 2 years ago

Accepted in woo repo!