Created
December 3, 2012 20:55
-
-
Save SecurityForUs/4197951 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- in my HTML stuff: | |
function callback(resp){ | |
var msg = ""; | |
var status = ""; | |
switch(resp.status){ | |
case 201: | |
$.ajax({ | |
type: 'POST', | |
async: false, | |
url: 'process.php?email='+load('mail')+'&cc='+resp.data.uri, | |
<truncated for brevity> | |
-- in PHP: | |
<?php | |
// Startup the Balanced API stuff | |
require(__DIR__ . '/vendor/autoload.php'); | |
Httpful\Bootstrap::init(); | |
Balanced\Bootstrap::init(); | |
// Get the card URI | |
$uri = $_POST['cc']; // this now has the response.data.uri value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment