# Configure Google Pay™ for paypoint POST https://api-sandbox.payabli.com/api/Wallet/googlepay/configure-paypoint Content-Type: application/json Configure and activate Google Pay for a Payabli paypoint Reference: https://docs.payabli.com/developers/api-reference/wallet/googlepay/googlepay-configure-paypoint ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Configure Google Pay for a paypoint version: endpoint_wallet.ConfigureGooglePayPaypoint paths: /Wallet/googlepay/configure-paypoint: post: operationId: configure-google-pay-paypoint summary: Configure Google Pay for a paypoint description: Configure and activate Google Pay for a Payabli paypoint tags: - - subpackage_wallet parameters: - name: requestToken in: header required: true schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/type_:ConfigureGooglePaypointApiResponse' requestBody: content: application/json: schema: type: object properties: entry: $ref: '#/components/schemas/type_:Entry' isEnabled: $ref: '#/components/schemas/type_:IsEnabled' description: When `true`, Google Pay is enabled. components: schemas: type_:Entry: type: string type_:IsEnabled: type: boolean type_:IsSuccess: type: boolean type_:PageIdentifier: type: string type_:Responsecode: type: integer type_:GoogleWalletData: type: object properties: gatewayMerchantId: type: string description: The Google Pay merchant identifier. gatewayId: type: string description: The Google Pay gateway identifier. type_:GooglePayPaypointRegistrationData: type: object properties: entry: $ref: '#/components/schemas/type_:Entry' isEnabled: $ref: '#/components/schemas/type_:IsEnabled' walletType: type: string description: The wallet type. In this context it will always be `googlePay`. walletData: $ref: '#/components/schemas/type_:GoogleWalletData' type_:ResponseText: type: string type_:ConfigureGooglePaypointApiResponse: type: object properties: isSuccess: $ref: '#/components/schemas/type_:IsSuccess' pageIdentifier: $ref: '#/components/schemas/type_:PageIdentifier' responseCode: $ref: '#/components/schemas/type_:Responsecode' responseData: $ref: '#/components/schemas/type_:GooglePayPaypointRegistrationData' responseText: $ref: '#/components/schemas/type_:ResponseText' roomId: type: integer format: int64 description: Field not in use on this endpoint required: - isSuccess - pageIdentifier - responseCode - responseData - responseText ``` ## SDK Code Examples ```python ConfigurePaypoint from payabli import payabli client = payabli( api_key="YOUR_API_KEY", ) client.wallet.configure_google_pay_paypoint( entry="8cfec329267", is_enabled=True, ) ``` ```typescript ConfigurePaypoint import { PayabliClient } from "@payabli/sdk-node"; const client = new PayabliClient({ apiKey: "YOUR_API_KEY" }); await client.wallet.configureGooglePayPaypoint({ entry: "8cfec329267", isEnabled: true }); ``` ```go ConfigurePaypoint import ( context "context" option "github.com/payabli/sdk-go/option" sdkgo "github.com/payabli/sdk-go" sdkgoclient "github.com/payabli/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "", ), ) response, err := client.Wallet.ConfigureGooglePayPaypoint( context.TODO(), &sdkgo.ConfigurePaypointRequestGooglePay{ Entry: sdkgo.String( "8cfec329267", ), IsEnabled: sdkgo.Bool( true, ), }, ) ``` ```csharp ConfigurePaypoint using PayabliApi; var client = new PayabliApiClient("API_KEY"); await client.Wallet.ConfigureGooglePayPaypointAsync( new ConfigurePaypointRequestGooglePay { Entry = "8cfec329267", IsEnabled = true } ); ``` ```ruby ConfigurePaypoint require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/Wallet/googlepay/configure-paypoint") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["requestToken"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"entry\": \"8cfec329267\",\n \"isEnabled\": true\n}" response = http.request(request) puts response.read_body ``` ```java ConfigurePaypoint HttpResponse response = Unirest.post("https://api-sandbox.payabli.com/api/Wallet/googlepay/configure-paypoint") .header("requestToken", "") .header("Content-Type", "application/json") .body("{\n \"entry\": \"8cfec329267\",\n \"isEnabled\": true\n}") .asString(); ``` ```php ConfigurePaypoint request('POST', 'https://api-sandbox.payabli.com/api/Wallet/googlepay/configure-paypoint', [ 'body' => '{ "entry": "8cfec329267", "isEnabled": true }', 'headers' => [ 'Content-Type' => 'application/json', 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift ConfigurePaypoint import Foundation let headers = [ "requestToken": "", "Content-Type": "application/json" ] let parameters = [ "entry": "8cfec329267", "isEnabled": true ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/Wallet/googlepay/configure-paypoint")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```