summaryrefslogtreecommitdiff
path: root/addons/payment_paypal
diff options
context:
space:
mode:
authortbe-odoo <tbe@odoo.com>2017-08-18 13:25:16 +0200
committertbe-odoo <tbe@odoo.com>2017-08-29 17:11:23 +0200
commit80edbe5dff569683aeb3ca8d92d80221d2c8e977 (patch)
treec42764963191fa5c9517e735d5b0566bebd67041 /addons/payment_paypal
parent64ae5e2bc32eb99b6a6b470a9aed3803a8ecda0f (diff)
[ADD] payment: Added data for payment options
- Added the most used payment option (credit cards) in the world and assigned which payment acquirers can use them. - Added the form templates for each payment acquirer.
Diffstat (limited to 'addons/payment_paypal')
-rw-r--r--addons/payment_paypal/views/payment_paypal_templates.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/addons/payment_paypal/views/payment_paypal_templates.xml b/addons/payment_paypal/views/payment_paypal_templates.xml
index 9ba50a2b249..41af0c93a11 100644
--- a/addons/payment_paypal/views/payment_paypal_templates.xml
+++ b/addons/payment_paypal/views/payment_paypal_templates.xml
@@ -41,5 +41,35 @@
</form>
</template>
+ <template id="paypal_form">
+ <input type="hidden" name="cmd" t-att-value="cmd"/>
+ <input type="hidden" name="business" t-att-value="business"/>
+ <input type="hidden" name="item_name" t-att-value="item_name"/>
+ <input type="hidden" name="item_number" t-att-value="item_number"/>
+ <input type="hidden" name="amount" t-att-value="amount"/>
+ <input t-if="handling" type="hidden" name="handling"
+ t-att-value="handling"/>
+ <input type="hidden" name="currency_code" t-att-value="currency_code"/>
+ <!-- partner / address data -->
+ <input type="hidden" name="address1" t-att-value="address1"/>
+ <input type="hidden" name="city" t-att-value="city"/>
+ <input type="hidden" name="country" t-att-value="country"/>
+ <input type="hidden" name="email" t-att-value="email"/>
+ <input type="hidden" name="first_name" t-att-value="first_name"/>
+ <input type="hidden" name="last_name" t-att-value="last_name"/>
+ <input type="hidden" name="zip" t-att-value="zip_code"/>
+ <input t-if='state' type='hidden' name="state"
+ t-att-value='state'/>
+ <!-- after payment parameters -->
+ <input t-if='custom' type='hidden' name="custom"
+ t-att-value='custom'/>
+ <!-- URLs -->
+ <input t-if="paypal_return" type='hidden' name='return'
+ t-att-value="paypal_return"/>
+ <input t-if="acquirer.paypal_use_ipn" type='hidden' name='notify_url'
+ t-att-value="notify_url"/>
+ <input t-if="cancel_return" type="hidden" name="cancel_return"
+ t-att-value="cancel_return"/>
+ </template>
</data>
</odoo>