• Resolved Imagegerbull001

    (@gerbull001)


    Can this be extended to include sending the billing address to Stripe so that Stripe’s Radar can run it’s checks? (Happy to pay you if you have time to add this) Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Imagebfl

    (@bfl)

    You can use a snippet like the following:

    /** @param \WC_Order $order */
    add_filter( 'woo_mp_stripe_charge_request', function ( $request, $order ) {
    $request['payment_method_data']['billing_details']['name'] = $order->get_formatted_billing_full_name();
    $request['payment_method_data']['billing_details']['email'] = $order->get_billing_email();
    $request['payment_method_data']['billing_details']['phone'] = $order->get_billing_phone();
    $request['payment_method_data']['billing_details']['address']['line1'] = $order->get_billing_address_1();
    $request['payment_method_data']['billing_details']['address']['line2'] = $order->get_billing_address_2();
    $request['payment_method_data']['billing_details']['address']['city'] = $order->get_billing_city();
    $request['payment_method_data']['billing_details']['address']['state'] = $order->get_billing_state();
    $request['payment_method_data']['billing_details']['address']['postal_code'] = $order->get_billing_postcode();
    $request['payment_method_data']['billing_details']['address']['country'] = $order->get_billing_country();

    return $request;
    }, 10, 2 );
    Thread Starter Imagegerbull001

    (@gerbull001)

    Amazing! It worked perfectly, Radar could analyse the transaction with the snippet in place. Thank you so much

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Zip/Post Code Check’ is closed to new replies.