Skip to content

Instantly share code, notes, and snippets.

@0x07dc
0x07dc / VenmoPaymentRequest
Last active August 29, 2015 14:02
A function to send a request for payment through Venmo, based on http://davidwalsh.name/curl-post and using the Venmo API
function sendPaymentRequest($email,$amount){
//http://davidwalsh.name/curl-post
//set POST variables
$url = 'https://api.venmo.com/v1/payments';
$access_token = ; // use your access token
$phone = $email; // This is email address, phone number, or user id (I think -- email addresses are common)
$note = "This is a request for a payment of $".$amount." for ...";
$amount = $amount;
$audience = 'private';// chose audience
var Wav = function(opt_params){
/**
* @private
*/
this._sampleRate = opt_params && opt_params.sampleRate ? opt_params.sampleRate : 44100;
/**
* @private
*/