Capturing charge with webhooks with “wc_gateway_stripe_process_payment”
-
Hey,
I have enabled and setup stripe for WooCommerce, and enabled webhooks and tested it with Stripe dashboard, all works good, except when i actually test it (with test dataand test keys).Objective: Get $charge data to get the billing_details/ source->owner address details, as an additional measure at our end as a measure of fraud prevention. So the billing address details provided by the customer should be same as the credit card (address) details.
If i enable “Capture charge immediately”, the hook “wc_gateway_stripe_process_payment”, does not get called coz the order status is “processing” and it bails before it reaches the action hook.
If I disable “Capture charge immediately”, at the time of sale it bails coz the order status is “on-hold”, and when i click capture from Stripe dashboard, it bails coz before it reaches the hook coz order status is processing.
am i missing something here?
what is the best way to get these (card owner address) details?
Warm Regards,
- The topic ‘Capturing charge with webhooks with “wc_gateway_stripe_process_payment”’ is closed to new replies.