Skip to content

Instantly share code, notes, and snippets.

View wegeberg's full-sized avatar
💭
Working on React/PHP/Node Frontends/Backends/APIs

Martin Wegeberg wegeberg

💭
Working on React/PHP/Node Frontends/Backends/APIs
View GitHub Profile
(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 => {