GarantiPay
pz-gpay is the GPayOption component that provides Garanti Pay (GPay) payment integration within the checkout process. It supports both default UI rendering and a fully customized UI via the customUIRender prop.
Installation Method
You can use the following command to install the extension with the latest plugins:
npx @akinon/projectzero@latest --pluginsProps
containerClassName
string
Optional
Custom class for the root <form> container
titleClassName
string
Optional
Class for the title (<h1> element)
descriptionClassName
string
Optional
Class for the description container
buttonClassName
string
Optional
Class for the submit button
translations
Partial<GPayTranslations>
Optional
Override default title, description, button and error texts
customUIRender
function
Optional
Function to override the internal rendering logic and provide custom layout
CustomUIRender Parameters
handleSubmit
UseFormHandleSubmit<GPayForm>
Wrapper for your onSubmit function with validation
onSubmit
SubmitHandler<GPayForm>
Submit logic that handles payment integration internally
control
Control<GPayForm>
React Hook Form control object, useful for controlled inputs
errors
FieldErrors<GPayForm>
Validation errors, helpful for form field error handling
translations
GPayTranslations
Final translation object with merged defaults and overrides
Default Translations
Usage Examples
Default Usage
Custom UI Usage
Garanti Pay Redirect
To complete the payment, a redirect page must be created to handle post-payment logic:
Last updated
Was this helpful?

