Skip to content

Instantly share code, notes, and snippets.

View palavilli-godaddy's full-sized avatar

Praveen Alavilli palavilli-godaddy

View GitHub Profile
@palavilli-godaddy
palavilli-godaddy / gist:310ab5e1296dbcb41f977574997a94a8
Created February 6, 2017 04:33
business-after-accepting-agreement
{
"address":{
"status":"ADDED",
"type":"BUSINESS",
"createdAt":"2015-01-20T21:27:47Z",
"updatedAt":"2016-09-07T11:06:46Z",
"id":116,
"line1":"19644 Business Drive",
"line2":"Suite 708",
"city":"Palo Alto",
{
"taxExempted":false,
"createdAt":"2016-07-09T09:06:46Z",
"updatedAt":"2016-07-09T09:06:46Z",
"context":{
"employeeUserId":1543071,
"storeDeviceId":"urn:tid:27c899f2-cf33-3a8f-99a0-c9db8cdd3153",
"transactionInstruction":"NONE",
"source":"INSTORE",
"businessId":"20dc39af-a26a-4c76-a209-4b226059e246",
{
"orders":[
{
"taxExempted":false,
"createdAt":"2016-07-09T09:06:46Z",
"updatedAt":"2016-07-09T09:06:46Z",
"context":{
"employeeUserId":1543071,
"storeDeviceId":"urn:tid:27c899f2-cf33-3a8f-99a0-c9db8cdd3153",
"transactionInstruction":"NONE",
Verifying that +ppalavilli is my openname (Bitcoin username). https://onename.io/ppalavilli
@palavilli-godaddy
palavilli-godaddy / keybase.md
Last active March 7, 2021 19:41
keybase.md

Keybase proof

I hereby claim:

  • I am palavilli-godaddy on github.
  • I am ppalavilli (https://keybase.io/ppalavilli) on keybase.
  • I have a public key ASBBpzMZW6zpwzl1K5twdtxJUIe-zC4ivIK8jXK7xWindgo

To claim this, I am signing this object:

@palavilli-godaddy
palavilli-godaddy / gist:5137656
Created March 11, 2013 20:53
sample hateoas links
...
...
"links":[
{
"href":"https://api.sandbox.paypal.com/v1/payments/sale/1PK6356827846603W",
"rel":"self",
"method":"GET"
},
{
"href":"https://api.sandbox.paypal.com/v1/payments/sale/1PK6356827846603W/refund",
@palavilli-godaddy
palavilli-godaddy / gist:1793582
Created February 10, 2012 22:27
doEC-one-time-simple-payment-php
require_once('services/PayPalApi/PayPalAPIInterfaceServiceService.php');
/* setup payment details */
orderTotal = new BasicAmountType( '-your-currency-code-', '-your-amount-');
$PaymentDetails= new PaymentDetailsType();
$PaymentDetails->OrderTotal = $orderTotal;
/* create DoExpressCheckout request details */
$DoECRequestDetails = new DoExpressCheckoutPaymentRequestDetailsType();
$DoECRequestDetails->PayerID = '-payer-id-from-get-EC-call;
@palavilli-godaddy
palavilli-godaddy / gist:1793291
Created February 10, 2012 21:56
getEC-one-time-simple-payment-php
require_once('services/PayPalApi/PayPalAPIInterfaceServiceService.php');
/* Create GetExpressCheckoutDetails request with token*/
$getExpressCheckoutDetailsRequest = new GetExpressCheckoutDetailsRequestType('-token-from-setEC-call-');
$getExpressCheckoutDetailsRequest->Version = 85.0;
$getExpressCheckoutReq = new GetExpressCheckoutDetailsReq();
$getExpressCheckoutReq->GetExpressCheckoutDetailsRequest = $getExpressCheckoutDetailsRequest;
/* execute the GetExpressCheckoutDetails API call */
$paypalService = new PayPalAPIInterfaceServiceService();
@palavilli-godaddy
palavilli-godaddy / gist:1793020
Created February 10, 2012 21:30
setEC-one-time-simple-payment-php
require_once('services/PayPalApi/PayPalAPIInterfaceServiceService.php');
/* Setup Payment Details */
$PaymentDetails= new PaymentDetailsType();
$PaymentDetails->OrderTotal = new BasicAmountType('-your-currency-code-', '-your-amount-');
$PaymentDetails->PaymentAction = 'Sale';
$PaymentDetails->OrderDescription = '-your-payment-order-description-';
/* Setup Checkout request details */
$setECReqDetails = new SetExpressCheckoutRequestDetailsType();
@palavilli-godaddy
palavilli-godaddy / CreateRecurringPaymentsProfile-v1
Created January 25, 2012 19:24
CreateRecurringPaymentsProfile
/*
* Copyright 2005, 2008 PayPal, Inc. All Rights Reserved.*/
import com.paypal.sdk.services.NVPCallerServices;
import com.paypal.sdk.util.*;
import com.paypal.sdk.exceptions.PayPalException;
import com.paypal.sdk.profiles.APIProfile;
import com.paypal.sdk.profiles.ProfileFactory;
/**