diff --git a/examples/att_transaction.html b/examples/att_transaction.html index 699f649..4e57cc8 100644 --- a/examples/att_transaction.html +++ b/examples/att_transaction.html @@ -1,7 +1,7 @@ - AT&T Location Example + AT&T Payment Example @@ -24,7 +24,7 @@ // Define a custom scope 'SCOPES' : { // AT&T scopes: SMS, MMS, and "Messaging On Behalf Of" - 'att' : 'TL,SMS,MMS,MOBO' + 'att' : 'TL,SMS,MMS,MOBO', //,PAYMENT' } }; @@ -41,12 +41,12 @@ $.mobile.showPageLoadingMsg(); // NB: you may specify a return_url here - var my_transaction_name = 'tx_01'; - + var my_return_url=''; VIAFO_SETTINGS.OpenBrowserWindow( 'https://vsg-live.appspot.com/carrier/1/att/payment/' + my_transaction_name + - '/new.html?access_token=' + ViafoService.GetAccessToken()); + '/new.html?access_token=' + ViafoService.GetAccessToken() + + (my_return_url ? '&return_url='+my_return_url : '') ); return false; }); @@ -65,7 +65,10 @@

AT&T Payment

AT&T Payment

-

Press purchase to trigger transaction "tx_01". NB: You need to set this up in the Viafo +

Press purchase to trigger transaction "". NB: You need to set this up in the Viafo Developer site.