PayPal 无法完成交易
Posted
技术标签:
【中文标题】PayPal 无法完成交易【英文标题】:PayPal not able to complete a transaction 【发布时间】:2020-10-01 11:56:40 【问题描述】:我正在尝试通过 PayPal 完成交易,它会按照应有的方式设置交易,并且我正在像往常一样完成结帐流程。但在那之后什么也没有发生。字面上什么都没有。表格关闭,没有警报通过。 这是我的代码: 这是我的刀片视图。
@extends('layouts.app')
@section('content')
<body>
<p> $course->title </p>
<div id="paypal-button-container"></div>
</body>
@endsection
@section('scripts')
<script type="text/javascript" src=" URL::asset('https://www.paypal.com/sdk/js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ') "></script>
<script defer src="asset('/js/loadPaypal.js')"></script>
@endsection
@yield('scripts')
这是 JS 文件:
window.addEventListener('load',function()
paypal.Buttons().render('#paypal-button-container');
)
paypal.Buttons(
createOrder: function(data, actions)
// This function sets up the details of the transaction, including the amount and line item details.
return actions.order.create(
purchase_units: [
amount:
value: '1000000'
]
);
,
onApprove: function(data, actions)
// This function captures the funds from the transaction.
return actions.order.capture().then(function(details)
// This function shows a transaction success message to your buyer.
alert('Transaction completed by ' + details.payer.name.given_name);
);
).render('#paypal-button-container');
以下是控制台错误: 1.
[Vue warn]: Error compiling template:
Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <style>, as they will not be parsed.
41 |
42 | <p>html noobies</p>
43 | <div id="paypal-button-container"><div id="zoid-paypal-buttons-15c9e8f973_mtg6mje6mjm" class="paypal-buttons paypal-buttons-context-iframe paypal-buttons-label-undefined paypal-buttons-layout-vertical" style="height: 168px;"><style>
| ^^^^^^^
44 | #zoid-paypal-buttons-15c9e8f973_mtg6mje6mjm
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 | position: relative;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 | display: inline-block;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47 | width: 100%;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 | min-height: 35px;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 | min-width: 200px;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 | max-width: 750px;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 | font-size: 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 |
| ^^^^^^^^^^^^^^^^^^^^^
53 |
|
54 | #zoid-paypal-buttons-15c9e8f973_mtg6mje6mjm > iframe
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55 | position: absolute;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56 | top: 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 | left: 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58 | width: 100%;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59 | height: 100%;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60 |
| ^^^^^^^^^^^^^^^^^^^^^
61 |
|
62 | #zoid-paypal-buttons-15c9e8f973_mtg6mje6mjm > iframe.component-frame
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 | z-index: 100;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 |
| ^^^^^^^^^^^^^^^^^^^^^
65 |
|
66 | #zoid-paypal-buttons-15c9e8f973_mtg6mje6mjm > iframe.prerender-frame
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 | transition: opacity .2s linear;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68 | z-index: 200;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 |
| ^^^^^^^^^^^^^^^^^^^^^
70 |
|
71 | #zoid-paypal-buttons-15c9e8f973_mtg6mje6mjm > iframe.visible
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72 | opacity: 1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73 |
| ^^^^^^^^^^^^^^^^^^^^^
74 |
|
75 | #zoid-paypal-buttons-15c9e8f973_mtg6mje6mjm > iframe.invisible
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
76 | opacity: 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77 | pointer-events: none;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78 |
| ^^^^^^^^^^^^^^^^^^^^^
79 |
|
80 | #zoid-paypal-buttons-15c9e8f973_mtg6mje6mjm > .smart-menu
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
81 | position: absolute;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82 | z-index: 300;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83 | top: 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84 | left: 0;
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ntcIl9fdHlwZV9fXCI6XCJjcm9zc19kb21haW5fZnVuY3Rpb25cIixcIl9fdmFsX19cIjp7XCJpZFwiOlwiMDM1NDU2M2FiNF9tdGc2bWplNm1qbVwiLFwibmFtZVwiOlwiY2hlY2tDbG9zZVwifX0sXCJyZXNpemVcIjp7XCJfX3R5cGVfX1wiOlwiY3Jvc3NfZG9tYWluX2Z1bmN0aW9uXCIsXCJfX3ZhbF9fXCI6e1wiaWRcIjpcIjhiMDY0NWIxMThfbXRnNm1qZTZtam1cIixcIm5hbWVcIjpcImdlXCJ9fSxcIm9uRXJyb3JcIjp7XCJfX3R5cGVfX1wiOlwiY3Jvc3NfZG9tYWluX2Z1bmN0aW9uXCIsXCJfX3ZhbF9fXCI6e1wiaWRcIjpcIjQyNzE2NGQ5MTRfbXRnNm1qZTZtam1cIixcIm5hbWVcIjpcInhlXCJ9fSxcInNob3dcIjp7XCJfX3R5cGVfX1wiOlwiY3Jvc3NfZG9tYWluX2Z1bmN0aW9uXCIsXCJfX3ZhbF9fXCI6e1wiaWRcIjpcIjAyOTBiMjEwYTBfbXRnNm1qZTZtam1cIixcIm5hbWVcIjpcImVlXCJ9fSxcImhpZGVcIjp7XCJfX3R5cGVfX1wiOlwiY3Jvc3NfZG9tYWluX2Z1bmN0aW9uXCIsXCJfX3ZhbF9fXCI6e1wiaWRcIjpcImRkYmUyMmUyMzlfbXRnNm1qZTZtam1cIixcIm5hbWVcIjpcIm5lXCJ9fX0ifQ==__" title="paypal" allowpaymentrequest="allowpaymentrequest" scrolling="no" id="jsx-iframe-47f585f579" class="component-frame invisible" style="background-color: transparent; border: none;"></iframe><iframe allowtransparency="true" name="__zoid_prerender_frame__paypal_buttons_a51937771f_mtg6mje6mjm__" title="paypal" allowpaymentrequest="allowpaymentrequest" scrolling="no" id="jsx-iframe-7e9201988f" class="prerender-frame visible" style="background-color: transparent; border: none;"></iframe><div id="smart-menu" class="smart-menu"></div></div></div>
88 |
| ^^^^
89 |
|
90 |
| ^^^^
91 | </main>
| ^^^^^^^^^^^^^^^
92 | </div>
| ^^^^^^^^^^
错误 2:
unhandled_error Here is my paypal id err: "Error: Window closed↵ at https://www.paypal.com…EwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2:8425", timestamp: "1591899685628", referer: "127.0.0.1:8000", uid: "445e7a01e2_mtg6mtu6mjq", env: "sandbox"
错误 3:
Uncaught Error: Window closed
at js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
at e.n.dispatch (js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2)
at e.n.then (js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2)
at Ce (js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2)
at js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
at e.n.dispatch (js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2)
at e.n.resolve (js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2)
at e.n.dispatch (js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2)
at e.n.resolve (js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2)
at js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.then @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
Ce @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.resolve @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.resolve @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
setTimeout (async)
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
setTimeout (async)
n.reject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.reject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.reject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.reject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.reject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.reject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.reject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.reject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.reject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.asyncReject @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.then @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
ve @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.then @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
Ce @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.resolve @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.resolve @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
setTimeout (async)
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
e @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
e.delay @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
e @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.then @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
e.try @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
render @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.dispatch @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
n.then @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
r @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
render @ js?client-id=AYJIx-sjImWmpIBdQ1hi8g9b7_il4T2AlGcVprEwDxdsjolQnxICqAEAHnQNkAGGr8HlGoLg0MBbMhrJ:2
(anonymous) @ loadPaypal.js:23
Show 16 more frames
【问题讨论】:
【参考方案1】:也许捕获根本不成功。您是否尝试向 onApprove() 函数添加 alert() 或其他日志记录?
尝试使用比1000000
更合理的数量进行测试,例如100
【讨论】:
刚刚意识到它甚至没有设置购买,因为在弹出窗口中显示 0.1 美元,但我将其设置为 10 美元。 嘿,@Preston,我通过简单地将以上是关于PayPal 无法完成交易的主要内容,如果未能解决你的问题,请参考以下文章
Paypal / Magento 错误:无法处理此交易。请用另一张卡付款
由于货币不受支持,此交易无法处理 - Paypal 直接付款
无法让 PayPal checkout.js 创建成功的交易