C#
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.DigitalWallets.Sessions.PazeMobileSessionReviewAsync(pazeSessionReviewRequest: new PazeSessionReviewRequest() {
SessionId = "7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2",
Code = "eyJhdWQiOm51bGwsImtpZCI6IjE3...",
AccessToken = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
});
// handle responsepackage main
import(
"context"
"os"
gr4vygo "github.com/gr4vy/gr4vy-go"
"github.com/gr4vy/gr4vy-go/models/components"
"log"
)
func main() {
ctx := context.Background()
s := gr4vy.New(
gr4vy.WithID("example"),
gr4vy.WithServer(gr4vy.ServerSandbox),
gr4vy.WithSecuritySource(withToken),
gr4vy.WithMerchantAccountID("default"),
)
res, err := s.DigitalWallets.Sessions.PazeMobileSessionReview(ctx, components.PazeSessionReviewRequest{
SessionID: "7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2",
Code: "eyJhdWQiOm51bGwsImtpZCI6IjE3...",
AccessToken: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
}, nil)
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}package hello.world;
import com.gr4vy.sdk.Gr4vy;
import com.gr4vy.sdk.models.components.PazeSessionReviewRequest;
import com.gr4vy.sdk.models.errors.*;
import com.gr4vy.sdk.models.operations.ReviewPazeMobileSessionResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Gr4vy sdk = Gr4vy.builder()
.id("example")
.server(AvailableServers.SANDBOX)
.merchantAccountId("default")
.securitySource(new BearerSecuritySource.Builder(privateKey).build())
.build();
ReviewPazeMobileSessionResponse res = sdk.digitalWallets().sessions().pazeMobileSessionReview()
.pazeSessionReviewRequest(PazeSessionReviewRequest.builder()
.sessionId("7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2")
.code("eyJhdWQiOm51bGwsImtpZCI6IjE3...")
.accessToken("eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...")
.build())
.call();
if (res.pazeSessionReview().isPresent()) {
System.out.println(res.pazeSessionReview().get());
}
}
}declare(strict_types=1);
require 'vendor/autoload.php';
use Gr4vy;
$sdk = Gr4vy\SDK::builder()
->setId('example')
->setServer('sandbox')
->setSecuritySource(Auth::withToken($privateKey))
->setMerchantAccountId('default')
->build();
$pazeSessionReviewRequest = new Gr4vy\PazeSessionReviewRequest(
sessionId: '7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2',
code: 'eyJhdWQiOm51bGwsImtpZCI6IjE3...',
accessToken: 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...',
);
$response = $sdk->digitalWallets->sessions->pazeMobileSessionReview(
pazeSessionReviewRequest: $pazeSessionReviewRequest
);
if ($response->pazeSessionReview !== null) {
// handle response
}from gr4vy import Gr4vy
import os
with Gr4vy(
merchant_account_id="default",
bearer_auth=os.getenv("GR4VY_BEARER_AUTH"),
) as g_client:
res = g_client.digital_wallets.sessions.paze_mobile_session_review(session_id="7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2", code="eyJhdWQiOm51bGwsImtpZCI6IjE3...", access_token="eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...")
# Handle response
print(res)import { Gr4vy, withToken } from "@gr4vy/sdk";
import fs from "fs";
const gr4vy = new Gr4vy({
id: "example",
server: "sandbox",
merchantAccountId: "default",
bearerAuth: withToken({
privateKey: fs.readFileSync("private_key.pem", "utf8"),
}),
});
async function run() {
const result = await gr4vy.digitalWallets.sessions.pazeMobileSessionReview({
sessionId: "7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2",
code: "eyJhdWQiOm51bGwsImtpZCI6IjE3...",
accessToken: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
});
console.log(result);
}
run();curl --request POST \
--url https://api.sandbox.{id}.gr4vy.app/digital-wallets/paze/session/review \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2",
"code": "eyJhdWQiOm51bGwsImtpZCI6IjE3...",
"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}
'{
"consumer": {
"firstName": "Team",
"lastName": "Integrations",
"fullName": "Team Integrations",
"countryCode": "US",
"languageCode": "EN",
"emailAddress": "[email protected]",
"mobileNumber": {
"countryCode": "1",
"phoneNumber": "3213213211"
}
},
"shippingAddress": {
"line1": "51551 Raynor Stream",
"city": "East Kory",
"state": "ND",
"zip": "67137",
"countryCode": "US",
"deliveryContactDetails": {
"contactFullName": "Team Integrations",
"contactPhoneNumber": {
"countryCode": "1",
"phoneNumber": "3213213211"
}
},
"line2": "<string>",
"line3": "<string>"
},
"maskedCard": {
"panLastFour": "2121",
"paymentAccountReference": "V0010013023108318841413393850",
"panExpirationMonth": "05",
"panExpirationYear": "2032",
"paymentCardDescriptor": "Visa Hero Card",
"paymentCardType": "CREDIT",
"paymentCardBrand": "VISA",
"paymentCardNetwork": "VISA",
"digitalCardData": {
"artUri": "https://sandbox.assets.vims.visa.com/vims/cardart/8f64614def1a41d39ea8acae4616bf6f_imageC",
"artHeight": 50,
"artWidth": 80
},
"billingAddress": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"name": "<string>",
"line2": "<string>",
"line3": "<string>",
"countryCode": "<string>"
}
},
"links": {
"CHANGE_CARD": "https://checkout.wallet.uat.earlywarning.io/...",
"CHANGE_SHIPPING_ADDRESS": "https://checkout.wallet.uat.earlywarning.io/..."
},
"code": "eyJhdWQiOm51bGwsImtpZCI6IjE3..."
}{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Request failed validation",
"details": []
}{
"type": "error",
"code": "unauthorized",
"status": 401,
"message": "No valid API authentication found",
"details": []
}{
"type": "error",
"code": "forbidden",
"status": 403,
"message": "Request failed validation",
"details": []
}{
"type": "error",
"code": "not_found",
"status": 404,
"message": "The resource could not be found",
"details": []
}{
"type": "error",
"code": "method_not_allowed",
"status": 405,
"message": "Method Not Allowed",
"details": []
}{
"type": "error",
"code": "duplicate_record",
"status": 409,
"message": "Request failed validation",
"details": [],
"resource_id": "cdc70639-cb9c-4222-a73f-b8ce39f7821b"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"type": "error",
"code": "too_early",
"status": 425,
"message": "Request failed validation",
"details": []
}{
"type": "error",
"code": "too_many_requests",
"status": 429,
"message": "Request failed validation",
"details": []
}{
"type": "error",
"code": "server_error",
"status": 500,
"message": "Request could not be processed",
"details": []
}{
"type": "error",
"code": "bad_gateway",
"status": 502,
"message": "Request could not be processed",
"details": []
}{
"type": "error",
"code": "gateway_timeout",
"status": 504,
"message": "Request could not be processed",
"details": []
}Review a Paze session
Review a Paze checkout session and retrieve the selected card, consumer, and shipping address details.
POST
/
digital-wallets
/
paze
/
session
/
review
C#
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.DigitalWallets.Sessions.PazeMobileSessionReviewAsync(pazeSessionReviewRequest: new PazeSessionReviewRequest() {
SessionId = "7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2",
Code = "eyJhdWQiOm51bGwsImtpZCI6IjE3...",
AccessToken = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
});
// handle responsepackage main
import(
"context"
"os"
gr4vygo "github.com/gr4vy/gr4vy-go"
"github.com/gr4vy/gr4vy-go/models/components"
"log"
)
func main() {
ctx := context.Background()
s := gr4vy.New(
gr4vy.WithID("example"),
gr4vy.WithServer(gr4vy.ServerSandbox),
gr4vy.WithSecuritySource(withToken),
gr4vy.WithMerchantAccountID("default"),
)
res, err := s.DigitalWallets.Sessions.PazeMobileSessionReview(ctx, components.PazeSessionReviewRequest{
SessionID: "7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2",
Code: "eyJhdWQiOm51bGwsImtpZCI6IjE3...",
AccessToken: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
}, nil)
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}package hello.world;
import com.gr4vy.sdk.Gr4vy;
import com.gr4vy.sdk.models.components.PazeSessionReviewRequest;
import com.gr4vy.sdk.models.errors.*;
import com.gr4vy.sdk.models.operations.ReviewPazeMobileSessionResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Gr4vy sdk = Gr4vy.builder()
.id("example")
.server(AvailableServers.SANDBOX)
.merchantAccountId("default")
.securitySource(new BearerSecuritySource.Builder(privateKey).build())
.build();
ReviewPazeMobileSessionResponse res = sdk.digitalWallets().sessions().pazeMobileSessionReview()
.pazeSessionReviewRequest(PazeSessionReviewRequest.builder()
.sessionId("7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2")
.code("eyJhdWQiOm51bGwsImtpZCI6IjE3...")
.accessToken("eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...")
.build())
.call();
if (res.pazeSessionReview().isPresent()) {
System.out.println(res.pazeSessionReview().get());
}
}
}declare(strict_types=1);
require 'vendor/autoload.php';
use Gr4vy;
$sdk = Gr4vy\SDK::builder()
->setId('example')
->setServer('sandbox')
->setSecuritySource(Auth::withToken($privateKey))
->setMerchantAccountId('default')
->build();
$pazeSessionReviewRequest = new Gr4vy\PazeSessionReviewRequest(
sessionId: '7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2',
code: 'eyJhdWQiOm51bGwsImtpZCI6IjE3...',
accessToken: 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...',
);
$response = $sdk->digitalWallets->sessions->pazeMobileSessionReview(
pazeSessionReviewRequest: $pazeSessionReviewRequest
);
if ($response->pazeSessionReview !== null) {
// handle response
}from gr4vy import Gr4vy
import os
with Gr4vy(
merchant_account_id="default",
bearer_auth=os.getenv("GR4VY_BEARER_AUTH"),
) as g_client:
res = g_client.digital_wallets.sessions.paze_mobile_session_review(session_id="7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2", code="eyJhdWQiOm51bGwsImtpZCI6IjE3...", access_token="eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...")
# Handle response
print(res)import { Gr4vy, withToken } from "@gr4vy/sdk";
import fs from "fs";
const gr4vy = new Gr4vy({
id: "example",
server: "sandbox",
merchantAccountId: "default",
bearerAuth: withToken({
privateKey: fs.readFileSync("private_key.pem", "utf8"),
}),
});
async function run() {
const result = await gr4vy.digitalWallets.sessions.pazeMobileSessionReview({
sessionId: "7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2",
code: "eyJhdWQiOm51bGwsImtpZCI6IjE3...",
accessToken: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
});
console.log(result);
}
run();curl --request POST \
--url https://api.sandbox.{id}.gr4vy.app/digital-wallets/paze/session/review \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "7c1cba03-d20e-4a3f-9d77-e5dc23a39ac2",
"code": "eyJhdWQiOm51bGwsImtpZCI6IjE3...",
"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}
'{
"consumer": {
"firstName": "Team",
"lastName": "Integrations",
"fullName": "Team Integrations",
"countryCode": "US",
"languageCode": "EN",
"emailAddress": "[email protected]",
"mobileNumber": {
"countryCode": "1",
"phoneNumber": "3213213211"
}
},
"shippingAddress": {
"line1": "51551 Raynor Stream",
"city": "East Kory",
"state": "ND",
"zip": "67137",
"countryCode": "US",
"deliveryContactDetails": {
"contactFullName": "Team Integrations",
"contactPhoneNumber": {
"countryCode": "1",
"phoneNumber": "3213213211"
}
},
"line2": "<string>",
"line3": "<string>"
},
"maskedCard": {
"panLastFour": "2121",
"paymentAccountReference": "V0010013023108318841413393850",
"panExpirationMonth": "05",
"panExpirationYear": "2032",
"paymentCardDescriptor": "Visa Hero Card",
"paymentCardType": "CREDIT",
"paymentCardBrand": "VISA",
"paymentCardNetwork": "VISA",
"digitalCardData": {
"artUri": "https://sandbox.assets.vims.visa.com/vims/cardart/8f64614def1a41d39ea8acae4616bf6f_imageC",
"artHeight": 50,
"artWidth": 80
},
"billingAddress": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"name": "<string>",
"line2": "<string>",
"line3": "<string>",
"countryCode": "<string>"
}
},
"links": {
"CHANGE_CARD": "https://checkout.wallet.uat.earlywarning.io/...",
"CHANGE_SHIPPING_ADDRESS": "https://checkout.wallet.uat.earlywarning.io/..."
},
"code": "eyJhdWQiOm51bGwsImtpZCI6IjE3..."
}{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Request failed validation",
"details": []
}{
"type": "error",
"code": "unauthorized",
"status": 401,
"message": "No valid API authentication found",
"details": []
}{
"type": "error",
"code": "forbidden",
"status": 403,
"message": "Request failed validation",
"details": []
}{
"type": "error",
"code": "not_found",
"status": 404,
"message": "The resource could not be found",
"details": []
}{
"type": "error",
"code": "method_not_allowed",
"status": 405,
"message": "Method Not Allowed",
"details": []
}{
"type": "error",
"code": "duplicate_record",
"status": 409,
"message": "Request failed validation",
"details": [],
"resource_id": "cdc70639-cb9c-4222-a73f-b8ce39f7821b"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"type": "error",
"code": "too_early",
"status": 425,
"message": "Request failed validation",
"details": []
}{
"type": "error",
"code": "too_many_requests",
"status": 429,
"message": "Request failed validation",
"details": []
}{
"type": "error",
"code": "server_error",
"status": 500,
"message": "Request could not be processed",
"details": []
}{
"type": "error",
"code": "bad_gateway",
"status": 502,
"message": "Request could not be processed",
"details": []
}{
"type": "error",
"code": "gateway_timeout",
"status": 504,
"message": "Request could not be processed",
"details": []
}This endpoint requires the
digital-wallets.write or embed scope.
Authorizations
Headers
Body
application/json
Response
Successful Response
Was this page helpful?