Update payment transaction
Update the payment transaction for a session
Import
import { updatePaymentTransaction } from "@paywithglide/glide-js";
Usage
index.ts
import { updatePaymentTransaction } from "@paywithglide/glide-js";
import { config } from ""./config";
const { success } = await updatePaymentTransaction(config, {
sessionId: "c165e159-1f0e-44a1-8fa8-8c963444752e",
hash: "0x...",
});
Parameters
sessionId*
string
The unique identifier of the session.
hash*
string
The payment transaction hash that was used to pay for the session.
Return Type
success*
boolean
Indicates whether the update was successful.