how i call createpaymentrequest method and which link set in path/to/payment/page using .net and js

hii i have issue with using this squreup payment gateway please guide me for next steps 

 which link set in the place of action attribute of below form tag

 

<form id="nonce-form" novalidate action="path/to/payment/processing/page" method="post">

 

how i call createpaymentrecuest after getting CardNonce from requestCardNonce 

createPaymentRequest: function () {
var paymentRequestJson = {
requestShippingAddress: true,
requestBillingInfo: true,
shippingContact: {
familyName: "CUSTOMER LAST NAME",
givenName: "CUSTOMER FIRST NAME",
email: "[email protected]",
country: "USA",
region: "CA",
city: "San Francisco",
addressLines: [
"1455 Market St #600"
],
postalCode: "94103",
phone: "14255551212"
},
currencyCode: "USD",
countryCode: "US",
total: {
label: "MERCHANT NAME",
amount: "85.00",
pending: false
},
lineItems: [
{
label: "Subtotal",
amount: "60.00",
pending: false
},
{
label: "Shipping",
amount: "19.50",
pending: true
},
{
label: "Tax",
amount: "5.50",
pending: false
}
]
};
return paymentRequestJson;
},

951 Views
Message 1 of 2
Report
1 REPLY 1
Alumni

Hello @dp18 I escalated this to our API team for you and the confirmed that the steps 5-7 in this SqPaymentForm documentation should help. It looks like you're trying to use the digital wallet for Google Pay, so once you receive the nonce the JavaScript on the page handles the nonce response:
- If nonce generation succeeds, set the hidden nonce field and submit the form.
- If nonce generation fails, handle the errors and provide feedback to the customer.

 

If you still need help with this reply here to let me know and I'll start a case for you with the team, or you can contact our Developer Support directly and they'll be happy to take a closer look.

️ Helen
Seller Community Manager

935 Views
Message 2 of 2
Report