Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions examples/att_transaction.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>AT&amp;T Location Example</title>
<title>AT&amp;T Payment Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
Expand All @@ -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'
}
};

Expand All @@ -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;
});
Expand All @@ -65,7 +65,10 @@ <h1>AT&amp;T Payment</h1>
<div data-role="content">
<div>
<h3>AT&amp;T Payment</h3>
<p>Press purchase to trigger transaction "tx_01". NB: You need to set this up in the Viafo
<p>Press purchase to trigger transaction "<script>
var my_transaction_name = 'tx_01';
document.write(my_transaction_name);
</script>". NB: You need to set this up in the Viafo
Developer site.</p>
<form id="transaction-form" action="#" method="GET">
<button type="submit" data-theme="a" data-inline="true">Purchase</button>
Expand Down