Skip to content

Instantly share code, notes, and snippets.


Dan dlm423

  • NYC
View GitHub Profile
View gist:6582e001a32b027dbcbb
Thanks for this script, seems quite useful! I am having an issue, my <a> tag is redirecting me to another page, as opposed to submitting the DELETE request. I asked a question on Stack Overflow and hope to get some help in case anyone else runs into this issue.
dlm423 / gist:8011739
Created Dec 17, 2013
new_transaction function
View gist:8011739
function new_transaction($cc_token=NULL, $total=NULL, $order_id=NULL){
$customer = \Balanced\Customer::get('/v1/customers/CU7guBPfer2uEkOEopU0KgXl');
$transaction=$customer->debit($total*100, array(''), "MerchantFuse Order #".$order_id, $cc_token);
return $transaction->uri;
//Note: I tried both of the following as values for $cc_token
// /v1/customers/CU7guBPfer2uEkOEopU0KgXl/cards/CC1KxhXOuHYrwGR8opxLuKjQ
You can’t perform that action at this time.