### Install Solidgate SDK for Go Source: https://docs.solidgate.com/payments/integrate/payment-form/create-your-payment-form Installs the Solidgate SDK for Go using the go get command. This allows developers to integrate Solidgate's payment functionalities into their Go applications. ```go go get github.com/solidgate-tech/go-sdk ``` -------------------------------- ### SDK Integration Source: https://docs.solidgate.com/payments/integrate/payment-form/create-your-payment-form Instructions and code examples for installing and initializing the Solidgate SDK in various programming languages (PHP, Node.js, Go, Kotlin, Python). ```APIDOC ## SDK Integration ### Description This section provides guidance on integrating the Solidgate SDK into your project. It covers installation steps for different languages and how to initialize the SDK with your API credentials. ### Step 1. Install SDK #### PHP ```bash composer require solidgate/php-sdk ``` #### Node.js ```bash npm install @solidgate/node-sdk ``` #### Go ```bash go get github.com/solidgate-tech/go-sdk ``` #### Python ```bash pip3 install solidgate-card-sdk ``` ### Step 2. Create SDK Instance #### PHP ```php ", signature: "<-your data->", paymentIntent: "<-your data->", }, paypalButtonParams: { enabled: true, color: "blue", shape: "rect", label: "checkout", height: 52 } }; let form = PaymentFormSdk.init(data); ``` -------------------------------- ### Install Solidgate Module for Magento 2 Source: https://docs.solidgate.com/payments/integrate/ecommerce-platforms/magento Commands to copy, enable, compile, and verify the installation of the Solidgate Payment Module in a Magento 2 environment. ```bash cp -r Solidgate /path/to/magento/app/code/ php bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento cache:flush php bin/magento module:status Solidgate_Payment/ ``` -------------------------------- ### Customize Bizum Button Container Source: https://docs.solidgate.com/payments/integrate/payment-form/apm-buttons This example illustrates how to customize the position of the Bizum button by specifying a `div` element using its ID in the `containerId` parameter of `bizumButtonParams`. If no `containerId` is provided, the button appears above the form fields. ```javascript
``` -------------------------------- ### Create Solidgate API Instance in Go Source: https://docs.solidgate.com/payments/integrate/payment-form/create-your-payment-form Initializes the Solidgate API client in Go, passing your public and secret keys. This client is necessary for performing operations through the Solidgate API. ```go solidgateSdk := solidgate.NewSolidGateApi("public_key", "secret_key") ``` -------------------------------- ### Form Initialization and Configuration Source: https://docs.solidgate.com/payments/integrate/payment-form/create-your-payment-form This section details how to initialize the Solidgate Payment Form with various configuration options and styling. ```APIDOC ## Form Initialization and Configuration ### Description This section details how to initialize the Solidgate Payment Form with various configuration options and styling. ### Parameters #### Query Parameters - **containerId** (string) - Optional - Custom `containerId` to place the form. If not set, it is displayed in the element with id `solid-payment-form-container`. ### Request Body Example ```json { "merchantData": { "merchant": "api_pk_7b197...ba108f842", "signature": "MjliMzU4ODE3ZDVlM2E1YWZmYzI1NmU4MzU3YjhlODRkMTJmZTk1NjIxOWNiYzFmNDk0N2NkNjk5YTA5Y2Q4NzIzOWIwMTgxZTQwOGExZjFmYWQ1NzQyYjc3ZGRjMzE0MTczYTQ2OGEyMTlmNGI4YzA5ZmNhMTczZDI0ZDBkZmM=", "paymentIntent": "E5FKjxw5vRjjIZBKtH_Q9oN1Wmn5icMn720prO4nPB3cYpzC9wLAHwq9IwstmD-YFLFPsdq2Rk9YzRJhxdPEq2KI19fFt1QotX-smH5_xWxGfYcvrf2Y4v4KWgbjzJylHTDM6eCXVvbdZyVU54vD3sxntN3gFiyuhEzMn8mKoDV0UdIqLN_VsTAdehBUrqk7aPNzXCfSqpy9pCBlpdFNCfgOyHoDXGGS_Z9fK3gCw7usF2v0IU96mQGzdtyEUs1Z2MJYwle7sjEkWNEb9SkpW1zUXEZCFMF8Cu-dn6fWe4cVE2Ok1MDeTE43dySgw9e8GzMxgPmG2YFjg5xcvuedQ==" }, "formParams": { "buttonType": "default", "submitButtonText": "Pay", "isCardHolderVisible": true, "hideCvvNumbers": true, "headerText": "Enter your debit or credit card details (from merchant)", "titleText": "Card info (from merchant)", "formTypeClass": "default", "googleFontLink": "//fonts.googleapis.com/css2?family=DM+Sans:ital@1&display=swap", "autoFocus": false }, "styles": { "submit_button": { "background-color": "red", "font-size": "16px", "font-weight": "bold", "": { "background-color": "green" }, "form_body": { "font-family": "DM Sans" } } } } ``` ``` -------------------------------- ### Handling Verify Event in Angular Source: https://docs.solidgate.com/payments/integrate/payment-form/form-events Provides an example of integrating the Solidgate Angular SDK to respond to the 'verify' event. The `(verify)` output event binding on the `ngx-solid-payment` component triggers the `onVerify` method for custom event handling. Requires component setup and import of SDK types. ```typescript import {Component} from '@angular/core'; import {InitConfig, SdkMessage, MessageType} from "@solidgate/angular-sdk"; @Component({ selector: 'app-root', template: '