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. http://stackoverflow.com/questions/25695137/delete-request-outside-of-form-laravel/25695164 |
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.com'), "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 |