Skip to content

Commit ed39ad5

Browse files
authored
�카드사 결제 취소 시 오류 화면으로 이동하는 이슈 수정 (#22)
1 parent 9821a2d commit ed39ad5

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

paymentsdk/src/main/java/com/tosspayments/paymentsdk/PaymentWidget.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class PaymentWidget(
206206
) {
207207
try {
208208
this.paymentCallback = paymentCallback
209-
methodWidget?.requestPayment(paymentInfo, redirectUrl)
209+
methodWidget?.requestPayment(paymentInfo)
210210
} catch (e: Exception) {
211211
this.paymentCallback = null
212212
throw e

paymentsdk/src/main/java/com/tosspayments/paymentsdk/view/PaymentMethod.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,10 @@ class PaymentMethod(context: Context, attrs: AttributeSet? = null) :
5555
}
5656

5757
@Throws(IllegalAccessException::class)
58-
internal fun requestPayment(paymentInfo: PaymentInfo, redirectUrl: String?) {
58+
internal fun requestPayment(paymentInfo: PaymentInfo) {
5959
if (methodRenderCalled) {
6060
this.orderId = paymentInfo.orderId
61-
62-
val requestPaymentPayload = paymentInfo.getPayload().put(
63-
"redirectUrl",
64-
JSONObject().put("brandpay", JSONObject().put("redirectUrl", redirectUrl))
65-
)
66-
61+
val requestPaymentPayload = paymentInfo.getPayload()
6762
evaluateJavascript("paymentWidget.requestPaymentForNativeSDK($requestPaymentPayload)")
6863
} else {
6964
this.orderId = ""

0 commit comments

Comments
 (0)