This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(self.SWG = self.SWG || []).push(function (subscriptions) { | |
// SwG is ready to be called via subscriptions interface. | |
subscriptions.setOnPaymentResponse(function (paymentResponse) { | |
paymentResponse.then(function (response) { | |
// 1. Handle the payment response. | |
// CREATE LINKED ACCOUNT IN BACKEND | |
axios.post(`https://api-a4.blizzload.com/v2/abonnement/create-linked-account/`, response) | |
.then(claResponse => { |