试用结束后,贝宝不向客户收费

问题描述

我正在制定贝宝订阅计划。我面临两个问题。首先,有没有办法在没有试用期的情况下制定计划?其次,在试用期结束后,贝宝不向客户收费。

 let body = {    
    "product_id": "PROD-81J67779NH423045A","name": obj.pname,"description": obj.description,"billing_cycles": [  
      {  
        "frequency": {  
            "interval_unit": "DAY","interval_count": 1  
        },"tenure_type": "TRIAL","sequence": 1,"total_cycles": 1
      },{  
          "frequency": {  
            "interval_unit":  obj.duration,"interval_count": 1  
          },"tenure_type": "REGULAR","sequence": 2,"total_cycles": 12,"pricing_scheme": {  
            "fixed_price": {  
              "value": obj.price,"currency_code": "USD"  
            }  
          }  
        }  
      ],"payment_preferences": {  
      "service_type": "PREPAID","auto_bill_outstanding": true,"setup_fee": {  
        "value": obj.price,"currency_code": "USD"  
      },"setup_fee_failure_action": "CONTINUE","payment_failure_threshold": 3  
    },"quantity_supported": true,"taxes": {  
      "percentage": obj.tax,"inclusive": false  
    }  
} 

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)