小编But*_*ess的帖子

贝宝订阅设置

我正在尝试使用curl和im设置我的三个订阅,以确保值正确。尝试执行请求并获得响应,但是我的卷曲没有完全起作用。

https://developer.paypal.com/docs/api/subscriptions/v1/#plans_create

我的意图:

  • 3种计划可供选择:精英(149 PHP /月),高级(349 PHP /月),豪华(549 PHP /月)

  • 1个月是30天,如贝宝所说

  • id希望将其设置为每月自动更新,直到客户选择取消它为止。

  • 一次只有一个处于活动状态,如果用户在运行中选择了三个中的另一个,则将自动停止向他们收费,并向他们收取新的费用。(例如:目前为Elite149,一旦选择,订阅和续订将更改为549luxury)。

    curl -v -X POST https://api.sandbox.paypal.com/v1/billing/plans \
     -H "Content-Type: application/json" \
     -H "Authorization: Basic account_clientid:account_secretcode" \
     -H "PayPal-Request-Id: EPL-25012019-001" \
     -d '{
       "product_id": "MWC-2019EPL",
       "name": "My White Card Subscription Plans",
       "description": "MyWhiteCard Membership Levels",
       "status": "ACTIVE",
    
       "billing_cycles": [
         {
           "frequency": {
             "interval_unit": "MONTH",
             "interval_count": 1
           },
           "tenure_type": "REGULAR",
           "sequence": 1,
           "total_cycles": 999,
           "pricing_scheme": {
             "fixed_price": {
               "value": "149",
               "currency_code": "PHP"
             }
           }
         },
         {
           "frequency": {
             "interval_unit": "MONTH", …
    Run Code Online (Sandbox Code Playgroud)

html git curl paypal

4
推荐指数
1
解决办法
360
查看次数

Ionic4 - 如何在中心对齐警报按钮?

只是一个快速修复,但它如何使我的按钮居中?我正在使用“alertCtrl.create”

1

在警报离子文档页面中似乎也没有某种居中。

https://ionicframework.com/docs/api/alert-controller

 alertCtrl.create ({  
    header: 'Invalid Input',
    message: 'Please enter correct details',
    buttons: ['Okay']
}).then(alertElement => alertElement.present());
    return;
}
Run Code Online (Sandbox Code Playgroud)

ionic-framework angular ionic4

3
推荐指数
1
解决办法
1542
查看次数

标签 统计

angular ×1

curl ×1

git ×1

html ×1

ionic-framework ×1

ionic4 ×1

paypal ×1