using Gr4vy;
using Gr4vy.Models.Components;
using System.Collections.Generic;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.PaymentServices.VerifyAsync(verifyCredentials: new VerifyCredentials() {
PaymentServiceDefinitionId = "stripe-card",
Fields = new List<Field>() {},
});
// handle response{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}Verify the credentials of a configured payment service
using Gr4vy;
using Gr4vy.Models.Components;
using System.Collections.Generic;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.PaymentServices.VerifyAsync(verifyCredentials: new VerifyCredentials() {
PaymentServiceDefinitionId = "stripe-card",
Fields = new List<Field>() {},
});
// handle response{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}payment-services.write scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
The ID of the payment service definition to verify the fields against
"stripe-card"
The fields and their values, or a set of updated fields to merge with existing values.
Show child attributes
The optional ID of the configured payment service. New fields will be merged with any existing fields already stored before they are verified.
"fffd152a-9532-4087-9a4f-de58754210f0"
Successful Response