SDK reference · Python SDK
prov.authorize.checkout_approvals.update_settings
prov.authorize.checkout_approvals.update_settings in Python SDK. Let a person ask for a new link from an expired approval page; you get authorize.checkout_approval.resend_requested and send a fresh approval.
Signature
prov.authorize.checkout_approvals.update_settings(resend_on_expiry: bool) -> AnyParameters
resend_on_expiryboolRequired
Request fields
resend_on_expirybooleanRequired- Offer "Ask {store} to send a new link" on an expired approval page.
Returns
Any The settings now.
HTTP operation
PUT /v1/authorize/settings/checkout_approvals: Update your checkout approval settings
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/settings/checkout_approvals`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "resend_on_expiry": true }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/authorize/settings/checkout_approvals", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"resend_on_expiry": True
}).json()