cc-tracking/tasks/archive/comcarde/bridge-970/process.md
2019-05-21 16:40:16 +01:00

78 lines
1.2 KiB
Markdown

Re-authorise with :
```
Bearer YTM2ZGQ1NzUtOWFmNS01MjMyLTg5MjYtM2NkZjA5ZDU2ZGU1
```
## step 1 ##
Payee Account?
```
{
"description": "Silver Carpenter Inc. account.",
"receivingAccountServiceKey": "T_S_7c8551db-2aa0-489d-b80e-d1a8d42e4bfb"
}
```
created world pay
{
"key": "46112bc2-ea45-4c1e-afbd-90d82dd7da4c",
"ID": "5afaeb90297d4a0c895bb440"
}
created credit card
{
"cardUsageKey": "55f3fc0a-0d6f-485d-886b-9b8984a92923",
"cardID": "5afaec04297d4a0c895bb444"
}
create a new rule
const goodRuleParams = {
trigger: {
stage: 'paymentComplete',
type: 'ruleIdInRtp'
},
rule: {
payerInstrument: {
key: "55f3fc0a-0d6f-485d-886b-9b8984a92923",
ID: "5afaec04297d4a0c895bb444"
},
payeeID: '5afaeb90297d4a0c895bb440',
percentageShare: 1
}
};
{
"trigger": {
"stage": "paymentComplete",
"type": "ruleIdInRtp"
},
"rule": {
"payerInstrument": {
"ID": "5afaec04297d4a0c895bb444",
"key": "55f3fc0a-0d6f-485d-886b-9b8984a92923"
},
"payeeID": "5afaeb90297d4a0c895bb440",
"percentageShare": 2
}
}
created rule id
{
"ID": "5afaec7e297d4a0c895bb448"
}