Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 740 Bytes

agreement.md

File metadata and controls

57 lines (48 loc) · 740 Bytes

签约

创建

pingpp.agreements.create({
    contract_no: '123456789',
    app: 'APP_ID',
    channel: channel,
    extra: extra,
    metadata: {}
}, function (err, agreement) {
    // YOUR CODE
});

查询

pingpp.agreements.retrieve(
    'AGREEMENT_ID',
    function (err, agreement) {
        // YOUR CODE
    }
);
pingpp.agreements.list(
  { app: 'APP_ID', per_page: 3 },
  function(err, agreements) {
    // YOUR CODE
  }
);

解约

pingpp.agreements.cancel(
    'AGREEMENT_ID',
    function (err, agreement) {
        // YOUR CODE
    }
);

预扣费通知

pingpp.agreements.notify(
    'AGREEMENT_ID',
    function (err, resp) {
        // YOUR CODE
    }
);