paybridge 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,13 +120,13 @@ class SoftyCompProvider extends base_1.PaymentProvider {
|
|
|
120
120
|
}
|
|
121
121
|
async createSubscription(params) {
|
|
122
122
|
this.validateCurrency(params.currency);
|
|
123
|
-
// Map interval to SoftyComp frequency: 2=monthly,
|
|
123
|
+
// Map interval to SoftyComp frequency: 2=monthly, 6=yearly (valid range is 1-6)
|
|
124
124
|
let frequencyTypeID;
|
|
125
125
|
if (params.interval === 'monthly') {
|
|
126
126
|
frequencyTypeID = 2;
|
|
127
127
|
}
|
|
128
128
|
else if (params.interval === 'yearly') {
|
|
129
|
-
frequencyTypeID =
|
|
129
|
+
frequencyTypeID = 6;
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
132
132
|
throw new Error(`SoftyComp does not support ${params.interval} subscriptions. Use monthly or yearly.`);
|
package/package.json
CHANGED