Stripe extra info
-
Sorry for the extra post about the same problem.
I have looked at the info you gave me on adding metadata to the plugin, I cant make heads or tails of it so went to freelancer and payed someone to do it for me.
The guys was dumber than me so after wasting $50 at freelancer here I am again
The info I need added to the metadata look alot like this :
<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>
However this code was written for opencart so will not suit wp but gives you a idea on the fields that are needed.
Please please help me get this resolved.
If you need to discuss this with me more you can contact me on [email protected]
https://www.ads-software.com/plugins/stripe-for-woocommerce/
- The topic ‘Stripe extra info’ is closed to new replies.