payment.show().then((paymentResponse) => {
const paymentData = {
// payment method string
method: paymentResponse.methodName,
// payment details as you requested
details: paymentResponse.details,
// shipping address information
address: toDict(paymentResponse.shippingAddress),
};
// Send information to the server
});PaymentResponse: details property / notebook
PaymentResponse: details property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.