• Resolved JWMutant

    (@jwmutant)


    I am in the process of getting riskified incorporated into my credit card purchases.

    I have submitted a test purchase.

    Riskified have gotten back to me and advised me that there is some info missing.

    ? Email address
    ? Any product details (goes in the line_items field)
    ? Any shipping details (if the product requires that)
    ? Browser IP

    Is this info something the gateway should be providing to stripe?

    If it normally isnt info that would be provided can the plugin be altered to provide the extra info?

    Kindest Regards

    https://www.ads-software.com/plugins/stripe-for-woocommerce/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Stephen Zuniga

    (@stephenzuniga001)

    Could you tell me how you’re integrating riskified?

    Thread Starter JWMutant

    (@jwmutant)

    Sure.

    Firstly let me start of by saying that of all the ecommerce platforms that riskified can work with, woo is the hardest to get right.

    There are a few steps needed.

    First step is to give riskified a read only app access to stripe which has been done.

    The second step is to give Riskified a notification endpoint to the site, this is done via a api, which has been done.

    The third step is to Embed Riskified’s Storefront Beacon, this is in the process of being completed. The storefront beacon is a code snippet embedded on your website, that provides Riskified with important user session data.

    Once this is all done the riskified side of things will now be 100% integrated.

    So my question is the, Email address, Any product details (goes in the line_items field), Any shipping details (if the product requires that) and the Browser IP, is this info that stripe collects automatically or is this extra coding need on the gateway side of things to give them that info?

    Thread Starter JWMutant

    (@jwmutant)

    This is a copy taken straight from the Riskified/Stripe Integration github

    In order to review charges, Riskified requires the credit card billing address. When collecting credit card details, be sure to save this information as well.

    We also require that you add a metadata hash to every Stripe-created charge. The metadata hash must include the shipping address, billing company, billing phone, email, and browser IP. Below is an example of code written in Ruby.

    Stripe::Charge.create(amount: 100,
    currency: ‘usd’,
    customer: ‘cus_2xRw4xWfm7ybdg’,
    metadata: {shipping_address: ‘{“name”: “Dennis Duffy”,
    “city”: “San Francisco”,
    “line1”: “1 main st”,
    “line2″:””,
    “phone”:”917-917-9177″,
    “zip”:”99999″,
    “state”:”CA”,
    “company”:””,
    “country_code”:”US”}’,
    billing_company: ”,
    billing_phone: ‘917-917-9177’,
    email: ‘[email protected]’,
    browser_ip: ‘200.123.123.113’})

    Plugin Author Stephen Zuniga

    (@stephenzuniga001)

    Okay, so as far as adding the metadata to the Stripe order, that should all be possible using this filter (https://github.com/stezu/stripe-for-woocommerce/wiki/Hooks#s4wc_charge_data). You’ll have to do some digging to find the correct properties, but they should all be there in the form data (https://github.com/stezu/stripe-for-woocommerce/blob/master/classes/class-s4wc_gateway.php#L730-L753) in the 2nd parameter or the order object that’s passed as the 3rd parameter to that filter.

    I don’t think the plugin needs to be modified, but let me know if it needs another action/filter for you to be able to integrate riskified.

    Thanks,
    Stephen

    Thread Starter JWMutant

    (@jwmutant)

    The last time I had this issue was when I was using opencart and a stripe plugin.

    After alot of trialling I ended up having to turn to the dev of the plugin and ask him to add the fields to his plug.Which once it was done was perfect.

    I am more than happy to send some cash your way and work with you to test it.

    Hell with any luck you could use this feature as a pro version because every good e-merchant wants to have riskified as feature due to there 100% no-chargeback guarantee.

    Feel free to email me directly on [email protected] to discuss.

    Thread Starter JWMutant

    (@jwmutant)

    I dug up the coding that was added to the old opencart stripe plugin.

    <modification>

    <file name=”catalog/controller/payment/stripe.php” error=”skip”>
    <operation error=”skip”>
    <search position=”before”><![CDATA[
    $charge_response = $this->curlRequest(‘charges’, $data, ‘POST’);
    ]]></search>
    <add trim=”true”><![CDATA[
    $data[‘metadata’] = array();

    $data[‘metadata’][‘shipping_address’] = ‘{“name”: “‘ . $order_info[‘firstname’] . ‘ ‘ . $order_info[‘lastname’] . ‘”, ‘;
    $data[‘metadata’][‘shipping_address’] .= ‘”city”: “‘ . $order_info[‘shipping_city’] . ‘”, ‘;
    $data[‘metadata’][‘shipping_address’] .= ‘”line1″: “‘ . $order_info[‘shipping_address_1’] . ‘”, ‘;
    $data[‘metadata’][‘shipping_address’] .= ‘”line2″: “‘ . $order_info[‘shipping_address_2’] . ‘”, ‘;
    $data[‘metadata’][‘shipping_address’] .= ‘”phone”: “‘ . $order_info[‘telephone’] . ‘”, ‘;
    $data[‘metadata’][‘shipping_address’] .= ‘”zip”: “‘ . $order_info[‘shipping_postcode’] . ‘”, ‘;
    $data[‘metadata’][‘shipping_address’] .= ‘”state”: “‘ . $order_info[‘shipping_zone_code’] . ‘”, ‘;
    $data[‘metadata’][‘shipping_address’] .= ‘”country”: “‘ . $order_info[‘shipping_iso_code_2’] . ‘”, ‘;
    $data[‘metadata’][‘shipping_address’] .= ‘”company”: “‘ . $order_info[‘shipping_company’] . ‘”}’;

    $data[‘metadata’][‘billing_company’] = $order_info[‘payment_company’];
    $data[‘metadata’][‘billing_phone’] = $order_info[‘telephone’];
    $data[‘metadata’][’email’] = $order_info[’email’];
    $data[‘metadata’][‘browser_ip’] = $order_info[‘ip’];
    ]]></add>
    </operation>
    </file>

    </modification>

    Not sure if it is useful in any way or even where to put it.

    Thread Starter JWMutant

    (@jwmutant)

    I was having a look at some of the coding in your plugin, Im no coder but it looks like the coding I have given may only need a little bit of tweaking to get it to work.

    Yes?

    Like I said more than happy to throw a little cash your way if needed.

    Thread Starter JWMutant

    (@jwmutant)

    Ok I had the perameters done by a wordpress coder.
    However working out where to put the coding is a problem.

    Little help please?

    Plugin Author Stephen Zuniga

    (@stephenzuniga001)

    Closing this because of the duplicate.

    @ JWMutant Did you successfully integrate Riskified with WooCommerce and Strip? We are in the process of considering doing the same to decrease fraud.

    I would LOVE if you can share your wisdom and thoughts based on your experience.

    If there is another product or a way, I would truly appreciate any insights.

    Thank you SO VERY much,
    Jake

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Riskified and Stripe’ is closed to new replies.