#hanif_api

1 messages ¡ Page 1 of 1 (latest)

runic matrixBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1225405605033017395

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

covert spadeBOT
hushed stone
#

hi! can you provide ore details please on what you've tried so far/what guide you'e using, what exact API call have you a 402 erorr, etc?

vital coral
#

i have a diffrent question also can i ask?

hushed stone
#

sure.

vital coral
#

We can create desire products on stripe and ca get payment link from it. But we cannot handle the success or failure of the payment. As of now after the payment is successful we are changing the status of Booking that is showing in Admin and we also are mailing the customer and all of these are done by a dynamic link. Kindly let us know how can we handle dynamic link which has 2 parameters through wehook.

hushed stone
vital coral
#

okay

#

<!-- Alipay Button -->
<button id="alipay-button" class="readon2"
style="color:aliceblue;background:rgb(2, 131, 252);">Pay with Alipay</button>
<!-- WeChat Pay Button -->
<button id="wechat-pay-button" class="readon2"
style="color:aliceblue;background:rgb(2, 131, 252);">Pay with WeChat Pay</button>
4:58
// Create payment method for Alipay
var alipayButton = elements.create('paymentRequestButton', {
paymentRequest: stripe.paymentRequest({
country: 'CN',
currency: 'cny',
total: {
label: 'Total',
amount: {{ $price * 100 }}, // Amount in cents
},
requestPayerName: true,
requestPayerEmail: true,
}),
});
alipayButton.mount('#alipay-button');
// Create payment method for WeChat Pay
var wechatPayButton = elements.create('paymentRequestButton', {
paymentRequest: stripe.paymentRequest({
country: 'CN',
currency: 'cny',
total: {
label: 'Total',
amount: {{ $price * 100 }}, // Amount in cents
},
requestPayerName: true,
requestPayerEmail: true,
}),
});
wechatPayButton.mount('#wechat-pay-button');
this is js part

hushed stone
#

and what's your question about that?

#

PaymentRequestButton has nothing to do with Alipay or WeChat, it's for Google/Apple Pay.

vital coral
#

like we arent able to connect alipay and wepay

hushed stone