Code: Select all
Procedure Main(URL$, Success)
Debug "Script URL: " + URL$
Debug "Loading status: " + Success
!var paylike = Paylike('xxxxxxxxxxxxxxx');
!paylike.popup({
!currency: 'EUR',
! amount: 1800,
! }, function( err, res ){
!If (err) //***** THIS IS THE PROBLEM****
! return console.log(err);
! console.log(res.transaction.id);
! alert('Thank you!');
! });
EndProcedure
LoadScript("https://sdk.paylike.io/3.js", @Main())
Code: Select all
Uncaught ReferenceError: If is not defined
at Popup.cb (spiderbasic.js:284)
at Popup.close (3.js?_=1592483878720:1083)
at 3.js?_=1592483878720:1083