2Checkout Field

2Checkout Field

Pre-RequisitesSummaryNotes

Pre-Requisites

This field is only available in the Form Editor if you have installed the official Gravity Forms 2Checkout Add-On

Summary

The 2Checkout field provides Credit Card input fields tied to integrating with the 2Checkout payment service. If you have another Payment Gateway add-on installed and active, the Gravity Forms Credit Card Field is still available in case you are allowing users to choose from a list of payment processors, such as Stripe and Authorize.Net (the standard Credit Card field is needed for Authorize.Net’s processing). Conditional logic can be used to show/hide the Credit Card field depending on the payment processor selection.

2Checkout field as displayed in the Field Library

2Checkout field as displayed in the Form Editor.

This field will add the Credit Card Detail inputs for 2Checkout. The Card Details input collects the Card Number, Expiration Date, Security Code, and Cardholder Name. This part of the 2Checkout field is hosted on 2Checkout’s servers. All fields are required and are passed onto 2Checkout. You can modify the Field Label and the Description for this field.

Notes

When using Page fields to create a multi-page form, the 2Checkout field should be located on the last page of the form.

上次修改 2021.12.28

2Checkout Change Log

2Checkout Change Log

2.0.12.0 | 2020-12-231.1 | 2020-05-061.0 | 2018-12-17

2.0.1

Fixed PHP 8 compatibility issues.

2.0 | 2020-12-23

Added support for 2Checkout API version 6.0.
Added support for Gravity Forms 2.5.

1.1 | 2020-05-06

Added translations for Hebrew, Hindi, Japanese, and Turkish.
Updated Javascript files to use minified versions.
Fixed an issue where the API credentials settings could show as valid when an authentication error is returned by the 2Checkout API.

1.0 | 2018-12-17

Initial release.

上次修改 2021.12.28

gform_updates

gform_updates

DescriptionUsageParametersExamplesSource Code

Description
Triggered after the display of the update or invalid key notice for Gravity Forms.
Usage
1add_action( ‘gform_updates’, ‘my_function’, 10, 0 );

Parameters
There are not any parameters available for this action.

Examples
1234function my_function() {    //Do something here}add_action( ‘gform_updates’, ‘my_function’, 10, 0 );
Source Code
This action hook is located in update.php.

上次修改 2021.12.28

gform_payment_details

gform_payment_details

DescriptionUsageParametersExamplesSource Code

Description
Triggered after the payment details are displayed within a Gravity Forms entry.
Usage
1add_action( ‘gform_payment_details’, ‘my_function’, 10, 2 );

Parameters

$form_id integer
The current form ID.

$entry array
The current entry.

Examples
1234function my_function() {    //Do something here}add_action( ‘gform_payment_details’, ‘my_function’, 10, 2 );
Source Code
This action hook is located in entry_detail.php.

上次修改 2021.12.28

$_supports_callbacks

$_supports_callbacks

DescriptionPropertiesUsageLocationUsed By

Description
The $_supports_callbacks property defines if your payment add-on supports callbacks. By enabling this property within your payment add-on, you can easily receive and process callbacks.
Properties
Class: GFPaymentAddOn
Access: protected
Type: boolean
Defaults to: false
Usage
123class ExamplePaymentAddOn extends GFPaymentAddOn {    protected $_supports_callbacks = true;}
Location
includes/addon/class-gf-payment-addon.php
Used By
GFPaymentAddOn::upgrade_payment()

上次修改 2021.12.28

$_requires_credit_card

$_requires_credit_card

DescriptionPropertiesUsageLocationUsed By

Description
The $_requires_credit_card property allows you to easily define if a credit card field is required by a payment add-on. If this is set to true, the user will not be able to create any payment feeds without a credit card field present in the form.
Properties
Class: GFPaymentAddOn
Access: protected
Type: boolean
Defaults to: false
Usage
123class ExamplePaymentAddOn extends GFPaymentAddOn {    protected $_requires_credit_card = true;}
Location
includes/addon/class-gf-payment-addon.php
Used By
GFPaymentAddOn::before_delete_field()
GFPaymentAddOn::feed_list_message()
GFPaymentAddOn::init_admin()

上次修改 2021.12.28

$_async_feed_processing

$_async_feed_processing

DescriptionPropertiesUsageLocation

Description
The $_async_feed_processing property allows you to define a feed as asynchronous. By using this property, the feed will be processed asynchronously instead of at the same time other feeds are.
Properties
Class: GFFeedAddOn
Access: protected
Type: boolean
Defaults to: false
Usage
123class ExampleFeedAddOn extends GFFeedAddOn {    protected $_async_feed_processing = true;}
Location
includes/addon/class-gf-feed-addon.php

上次修改 2021.12.28