Arsalan
Arsalan
TPToss payments 개발자 커뮤니티
Created by iililililiililil on 11/29/2024 in #❓┃연동개발-문의
2개의 상점ID로 인한 라이브 키2개
No description
154 replies
TPToss payments 개발자 커뮤니티
Created by iililililiililil on 11/29/2024 in #❓┃연동개발-문의
2개의 상점ID로 인한 라이브 키2개
Hi there, Sorry! I don't understand korean! would appreciate if someone would brief me & we continue accordingly. Thanks
154 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
Hi @Ayaan, I am also sorry for delayed response. I just checked it right now! I had resolved it & now library loads fine on all environments. Also I've finished the integration. 🤝 Thanks alot for your help! we may consider this thread as closed!
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
Hi @Ayaan, I've almost done & finished. Thanks for your help! Its working fine at my localhost. when i deploy it on my testing server. the toss payment library is not loading there. https://js.tosspayments.com/v1/payment please suggest!
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
Hi @Ayaan, I've used below parameters with succesUrl & failUrl. but i got this error ""successUrl" 또는 "failUrl"을 넘긴 경우 Promise 방식을 지원하지 않습니다." why? I am testing these parameters on desktop browser! Please suggest! Thanks
tossPayments.requestPayment("CARD", {
amount: wc_toss_params.cartAmount,
orderId: wc_toss_params.orderId,
orderName: wc_toss_params.cartItemsDesc,
customerName: wc_toss_params.customerName,
_skipAuth: 'FORCE_FAIL',
successUrl: wc_add_to_cart_params.checkoutUrl,
failUrl: wc_add_to_cart_params.checkoutUrl,
customerEmail: document.getElementById('billing_email').value,
})
tossPayments.requestPayment("CARD", {
amount: wc_toss_params.cartAmount,
orderId: wc_toss_params.orderId,
orderName: wc_toss_params.cartItemsDesc,
customerName: wc_toss_params.customerName,
_skipAuth: 'FORCE_FAIL',
successUrl: wc_add_to_cart_params.checkoutUrl,
failUrl: wc_add_to_cart_params.checkoutUrl,
customerEmail: document.getElementById('billing_email').value,
})
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
Acknowledged!
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
Can i use webhook to deal with this? in case i don't get response from .then()
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
@Ayaan Appreciate 🙏
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
Understood! Let me follow above & try! Thank you for this help & detail briefing 🫡
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
Hmmm... 🤔
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
It is optional, only in PC. Not Mobile.
Does this mean mobile browser OR mobile App?
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
On PC, if you don't pass successUrl / failUrl to the requestPayment method, you will get the parameters that should passed to successUrl is returned as Promise. Hence, you can access those by .then().
Yes i've verified this & it works for me (using v1)
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
But I've seen that "successUrl" & "failUrl" parameters are optional in official documentation. is it mandatory to pass these parameters?
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
Appreciate! but i've instructed to use latest version. All i need right now is, I want to catch these parameters via .then() & save these parameters to relative order & doesn't want to redirect to Success OR Fail URLs. Can i do that with this library? https://js.tosspayments.com/v2/standard
{
"paymentKey": "tviva202411131429345nE24",
"orderId": "rfMtsUySPv5CBPftWLc_1",
"amount": 15600
}
{
"paymentKey": "tviva202411131429345nE24",
"orderId": "rfMtsUySPv5CBPftWLc_1",
"amount": 15600
}
41 replies
Does "requestPayment" method have promise? and return orderId,paymentKey & amount?
Thank you @Ayaan 👍 Yes i have verified & both worked with v1. Does these also works with v2?
41 replies