Previous Docs Version

The documentation you are viewing is for a previous version of Tea Commerce. Click here to jump to the current stable version.

Payment Forms

GeneratePaymentForm

Generates and returns the full html for the form to post when going to payment. Will use the current payment method's payment provider.

NB If you have configured culture specific settings for your payment provider, you must make sure to set the order.LanguageId property to the appropriate ISO code before calling GeneratePaymentForm.

The generated form will be submitted automatically.

Arguments

Name Type Default Description
storeId long _storeId Id of the store.

Example

TC.generatePaymentForm({storeId:1});
Last Updated: 9/2/2019, 10:22:34 AM