i have added a new WooCommerce Custom Payment Gateway plugin, this plugin show me the 2checkout features in woocommerce setting page like this
![enter image description here][1]
but how can I send my product value in 2co site when user check the 2checkout option and click the place order button then what action perform in front of site
Ive attached an image of my woocommerce custom payment gateway plugin, file name is class-wc-custom_payment_gateway_1 so in this file i have use the below code
<form action='https://www.2checkout.com/checkout/purchase' method='post'>
<input type='hidden' name='sid' value='5456777' >
<input type='hidden' name='product_id' value='10' >
<input type='hidden' name='quantity' value='1' >
<input name='submit' type='submit' value='Add to Cart' >
</form>
how can i get get form value in this form which i have set in payment gateway 2checkout page and how to redirect form value on click the place order button on site
this is my product detail and i sent the product detail on click the place order button
Thank you for your reply
You need to add all the parameters which need to be send to 2co in the form with a for loop
foreach ($this->params as $name => $value) {
echo "<input type=\"hidden\" name=\"$name\" value=\"$value\"/>\n";
}
And submit the form , I found this on 2CO Dynamic payment gateway plugin