1 // Set up a payment 2 payment: function(data, actions) { 3 return actions.payment.create({ 4 transactions: [{ 5 amount: { 6 total: '30.11', 7 currency: 'USD', 8 details: { 9 subtotal: '30.00', 10 tax: '0.07', 11 shipping: '0.03', 12 handling_fee: '1.00', 13 shipping_discount: '-1.00', 14 insurance: '0.01' 15 } 16 }, 17 description: 'The payment transaction description.', 18 custom: '90048630024435', 19 //invoice_number: '12345', Insert a unique invoice number 20 payment_options: { 21 allowed_payment_method: 'INSTANT_FUNDING_SOURCE' 22 }, 23 soft_descriptor: 'ECHI5786786', 24 item_list: { 25 items: [ 26 { 27 name: 'hat', 28 description: 'Brown hat.', 29 quantity: '5', 30 price: '3', 31 tax: '0.01', 32 sku: '1', 33 currency: 'USD' 34 }, 35 { 36 name: 'handbag', 37 description: 'Black handbag.', 38 quantity: '1', 39 price: '15', 40 tax: '0.02', 41 sku: 'product34', 42 currency: 'USD' 43 }], 44 shipping_address: { 45 recipient_name: 'Brian Robinson', 46 line1: '4th Floor', 47 line2: 'Unit #34', 48 city: 'San Jose', 49 country_code: 'US', 50 postal_code: '95131', 51 phone: '011862212345678', 52 state: 'CA' 53 } 54 } 55 }], 56 note_to_payer: 'Contact us for any questions on your order.' 57 }); 58 },