#hanif_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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?
i have a diffrent question also can i ask?
sure.
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.
https://stripe.com/docs/payments/checkout/fulfill-orders should help with that.
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
and what's your question about that?
PaymentRequestButton has nothing to do with Alipay or WeChat, it's for Google/Apple Pay.
like we arent able to connect alipay and wepay
sure, why did you think you could? What docs were you reading that implied PaymentRequestButton would do that?
if you want to support those methods, any of the approaches from https://docs.stripe.com/payments/accept-a-payment (Checkout/PaymentElement) would support them.