Changes

Stripe Payment Processor

763 bytes added, 20:51, 11 January 2017
no edit summary
* Configure the Stripe Payment form
* Create Custom field for Stripe
 
**Template: html template of the payment form page. You can use default template.
**Confirmation Page Template: html template of the payment confirmation page. You can use default template.
**Receipt Default Type: the type of the receipt level 3 created after stripe payment is finished**Receipt Default Status: the status of the receipt level 3 created after stripe payment is finished**Invoice Amount Field: field on the invoice level 2 record where the payment amount will be auto populatedfrom **Receipt Amount Field: field on the receipt level 3 where the payment amount be stored **Invoice Partially Paid Status: status applied to the invoice if level 2 f the receipt is not for the full amount **Invoice Fully Paid Status: status applied to the invoice level 2 if the receipt is for the full amount
**Currency: currency used for the payment
* Click Save when the fields have been populated.
[[Image:Stripe2.png|border|900px]]
 
==Create Custom field for Stripe ==
 
The custom field for the Stripe payment should ideally be created as a [[Custom Fields|Custom Field]] on the level 2 record.
 
The field should be a [[Custom Field Type: Special – Browser Script|Browser script]] with a Trigger Type of '''On Demand'''.
 
The Javascript should be populated with the text below, but with the FORMID value replaced with the Form ID of the relevant Payment Form.
 
<pre>
var new_window;
new_window = window.open('/billing/bc_stripepayment.jsp?token=@pay_encoded_token@&payform=FORMID','Pay Stripe', 'menubar=no,scrollbars=yes,width=400,height=300,status=no,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes');
new_window .opener = window;
new_window .focus();
</pre>
Smartstaff, administrator
4,478
edits