Невозможно завершить транзакцию paypal - Python Django - Не удалось перенаправить обратно в webapp для выполнения захвата
Мы реализовали django oscar для включения рекуррентных платежей paypal. В песочнице все работает хорошо.
Вот поток, который мы реализовали, но никогда не можем добраться до шага 3 и застреваем на шаге 2 после "Agree & Continue" (который в основном авторизует карту).
- Call SetExpressCheckout, setting up the billing agreement in the request [L_BILLINGTYPE0=RecurringPayments]. Returns a token, which identifies the transaction, to the merchant.
- Redirect buyer's browser to: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout appended with the token returned by SetExpressCheckout. Displays login page and allows buyer to select payment options and shipping address.
<--- застрял здесь
- Redirect buyer's browser to returnURL passed to SetExpressCheckout if buyer agrees to payment description.
- Call CreateRecurringPaymentsProfile in the background (without further actions from the user). Returns ProfileID in CreateRecurringPaymentsProfile response for the successfully created profile (PROFILEID=I-1NNDL8LGNX35).
- Display successful transaction page (Thank you page).
- Listen to PayPal IPN notifications to trigger merchant's server logic for future successful/failed/canceled/suspended payments.
На шаге 2, когда я нажимаю "Agree & Continue", происходит обработка спиннера, и я вижу, что с моей кредитной карты сняты деньги. Но затем ничего не происходит, перенаправление не происходит, все остается по-прежнему. Когда я снова нажимаю "Agree & Continue", появляется надпись "Sorry, we were not able to authorize your card. Пожалуйста, выберите другой способ оплаты".
Моя догадка - возможно, какие-то настройки продавца
Я занимаюсь бизнесом в Малайзии, но моя SaaS-услуга оплачивается в долларах США. К вашему сведению, я установил основной валютой USD. Пожалуйста, посмотрите снимок экрана.
- This is what happens after clicking "Agree & Continue". It is still the same page, nothing change, just it had a spinner for a while, and on the phone I saw it charged, see picture no.3. (I called bank it was charged, but paypal I called it was authorized but not captured, so it will be refunded)
- I clicked 2nd time, then "Sorry, we weren't able to authorize your card. Please choose another way to pay." appear.
- This is the charge from the card based on picture no.1
- I set USD as default. My business in Malaysia, not sure if its to do with settings.