We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 598c93d + 67533d2 commit 20f08dbCopy full SHA for 20f08db
dev-portal/src/services/api-catalog.js
@@ -70,6 +70,16 @@ export function addSubscription(usagePlanId) {
70
})
71
}
72
73
+export function confirmMarketplaceSubscription(usagePlanId, token) {
74
+ if (!usagePlanId) {
75
+ return
76
+ }
77
+
78
+ return getApiGatewayClient().then(apiGatewayClient => {
79
+ return apiGatewayClient.put('/marketplace-subscriptions/' + usagePlanId, {}, {"token" : token})
80
+ })
81
+}
82
83
export function unsubscribe(usagePlanId) {
84
return getApiGatewayClient().then(apiGatewayClient => {
85
return apiGatewayClient.delete(`/subscriptions/${usagePlanId}`, {}, {}).then(function(result) {
0 commit comments