简体   繁体   English

Paypal 结帐 javascript 集成借记卡和信用卡选项不起作用

[英]Paypal checkout javascript integration Debit and credit card option not work

I want to create PayPal payment using javascript SDK.我想使用 javascript SDK 创建 PayPal 付款。 I have followed PayPal documentation https://developer.paypal.com/sdk/js/reference/ .我遵循了 PayPal 文档https://developer.paypal.com/sdk/js/reference/ Below is the code that I have implemented.下面是我实现的代码。 The code is working for PayPal payment but when clicking in "Debit or Credit Card", and filling all the billing information, it's not working.该代码适用于 PayPal 付款,但在单击“借记卡或信用卡”并填写所有帐单信息时,它不起作用。 When I looked into network request, to URL( https://www.paypal.com/graphql?fetch_credit_form_submit ) and it's showing 429 HTTP code with no any response.当我查看网络请求时,到 URL( https://www.paypal.com/graphql?fetch_credit_form_submit )它显示 429 Z293C9EA246FF9985DC6F62A650F78 没有任何响应。 I have looked lot of videos where this code is working but its not working for me.我看过很多这段代码可以正常工作但对我不起作用的视频。 Any help is really appreciated.非常感谢任何帮助。

 <script src="https://www.paypal.com/sdk/js?client-id=AQTjGimz0db5Gqx2NLBvgXfc-dckdeKGJzJ5KY1JBsv7K5OWYsjipJuh8MX25IoohCWNl09RL4hA24uN"></script> 
 <script>
 paypal.Buttons({
  createOrder:function(data,actions){
   return actions.order.create({
  purchase_units:[{
   amount:{
    value:'40.99'
   }
  }]
 })
}
}).render('#paypal-button-container');
</script>
 <script src="https://www.paypal.com/sdk/js?client-id=AQTjGimz0db5Gqx2NLBvgXfc-dckdeKGJzJ5KY1JBsv7K5OWYsjipJuh8MX25IoohCWNl09RL4hA24uN"></script>   

<script>
 paypal.Buttons({

      createOrder: function(data, actions) {
            // Set up the transaction
            return actions.order.create({
              purchase_units: [{
                amount: {
                  value: 49.0
                }
              }]
            });
          },
          onApprove: function(data, actions) {
           ///.........
    }).render('#paypal-button-container');
</script>
    

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM