ClassesBigCommerceFormsPurchase Gift Certificate Handler

Purchase_Gift_Certificate_Handler

Handles the submission and processing of gift certificate purchase forms.

Constants

ConstantVisibilityTypeValue
ACTIONpublicstring’gift-purchase’

Methods

__construct

Purchase_Gift_Certificate_Handler constructor.

public __construct(\BigCommerce\Api\v3\Api\CartApi $api): mixed

Parameters:

ParameterTypeDescription
$api\BigCommerce\Api\v3\Api\CartApiThe Cart API instance.

handle_request

Handle the gift certificate purchase request.

public handle_request(array $submission): void

Parameters:

ParameterTypeDescription
$submissionarrayThe submitted form data.


Automatically generated on 2025-01-21