From b543b0aa8c32ee7959e2ae271bee1e36d33d5029 Mon Sep 17 00:00:00 2001 From: Bill Lee Date: Fri, 20 Jul 2012 21:55:28 -0700 Subject: [PATCH] Made several changes: Corrected title from "Location" to "Payment", dynamically update page content to reflect my_transaction_name value, Added my_return_url setting. --- examples/att_transaction.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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.