paypal-js
paypal-js copied to clipboard
[Bug] buttons style shape & loadScript result
Library used
paypal-js version 8.0.2/8.0.5
🐞 Describe the Bug
1.function loadScript
seems to return PayPalNamespace
, but i cant use CardFields
2.There is no 'sharp' option for the shape field(buttons.d.ts/PayPalButtonsComponentOptions), but it is in the document, and 'sharp' option works.
🔬 Minimal Reproduction
😕 Actual Behavior
This is the result returned by loadScript
🤔 Expected Behavior
1.The first problem I want it return the object with CardFields
, then i can use paypal && paypal.CardFields()
2.The second problem can be solve by ts-ignore,but i want to know whether you want to cancel the sharp option or just forget to update the type
🌍 Environment
- Node.js/npm: v20.9.0 / 8.19.4
- OS: Windows 10
- Browser: Chrome 126.0.6452.3
➕ Additional Context
for 1., can you share the options you are providing to loadScript
?
- is definitely a bug, we actually have a ticket on our board to address this but we haven't gotten to it yet. I will link this issue to that ticket so once its deployed they will come back and update this issue.
for 1., can you share the options you are providing to
loadScript
?
the first question is my mistake. our company account has not applied for the payment yet. I think maybe you should make the conditions of use in your documentation a little more explicit. Before i get the solution I guessed it need to apply and then use it. but my leader said the document means it just need to open the option in the console. so i...
- 绝对是一个错误,我们的董事会上实际上有一张票可以解决这个问题,但我们还没有得到解决。我会将此问题链接到该票证,因此一旦部署,他们将返回并更新此问题。
ok, thank you!
@wsbrunson after our account get permission, we can show the cardfields, but i prefer components
to overview
in the doc.
when use the CardFields I meet a new question.
After CardFields.createOrder
get the order ID, Paypal-js auto request the interface /v2/checkout/orders/xxx/confirm-payment-source
,
it return details[0].issue : PEKMISSION DEIED
, name: HOT AUTHORIZED
, it seems i need to set TOKEN? but how can i set it token at client, and i dont see any info at the doc.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information.