paypal-js icon indicating copy to clipboard operation
paypal-js copied to clipboard

[Bug] buttons style shape & loadScript result

Open 21stc-09 opened this issue 9 months ago • 5 comments

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 17152358634222

🤔 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

21stc-09 avatar May 09 '24 06:05 21stc-09

for 1., can you share the options you are providing to loadScript?

wsbrunson avatar May 20 '24 12:05 wsbrunson

  1. 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.

wsbrunson avatar May 20 '24 12:05 wsbrunson

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...

21stc-09 avatar May 21 '24 01:05 21stc-09

  1. 绝对是一个错误,我们的董事会上实际上有一张票可以解决这个问题,但我们还没有得到解决。我会将此问题链接到该票证,因此一旦部署,他们将返回并更新此问题。

ok, thank you!

21stc-09 avatar May 21 '24 01:05 21stc-09

@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.

17182444667205

21stc-09 avatar Jun 13 '24 07:06 21stc-09

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!

github-actions[bot] avatar Sep 12 '24 00:09 github-actions[bot]

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.

github-actions[bot] avatar Sep 19 '24 00:09 github-actions[bot]