Closed aashishgurung closed 1 year ago
Need to update this on includes/gateway/class-omise-payment-ocbc-pao.php
from https://github.com/omise/omise-woocommerce/pull/265
as well. 🤔
I've tested with my website but even I'm filled all the billing address
the metadata here still empty value
I've tested with my website but even I'm filled all the billing address
the metadata here still empty value
Thanks for reporting it. It should have worked. I will ping you via slack to know more about it.
https://github.com/omise/omise-woocommerce/pull/270 if you release after me, can you incorporate your change on GrabPay (new payment method) too?
270 if you release after me, can you incorporate your change on GrabPay (new payment method) too?
Sure
retest again with billing address fixed, now it works
SonarCloud Quality Gate failed.
3 Bugs
0 Vulnerabilities
0 Security Hotspots
10 Code Smells
No Coverage information
5.9% Duplication
1. Objective
Add customer name to the metadata
Jira Ticket: https://omise.atlassian.net/browse/FRON-1464
2. Description of change
Customer name is fetched from the
$order
object. A new functiongetOrderMetadata
which is created in theclass-omise-payment.php
that abstracts the code to generate the metadata to be sent to the OMISE server. It takes$order_id
and$order
as the parameters.Even though we could obtain the order ID from the
$order
obejct, we passed the$order_id
to thegetOrderMetada
method to avoid checking for backward compatibility.3. Quality assurance
Add item to the cart and checkout using following payment methods
Tested with following payment methods
On the dashboard, go to any one charge and you should see the customer name in the metadata.
🔧 Environments: