Skip to content

Instantly share code, notes, and snippets.

View james-dibble's full-sized avatar

James Dibble james-dibble

View GitHub Profile
@james-dibble
james-dibble / gist:8801628
Last active August 29, 2015 13:56
An example MVC controller for interacting with a PayPal payment service
namespace TheBush.Controllers
{
using System.Globalization;
using System.IO;
using System.Web.Mvc;
using PayPal.Exception;
using Application.Services;
@james-dibble
james-dibble / gist:8801458
Last active August 29, 2015 13:56
PayPal REST API SDK Payment Serice example
namespace Application.Services
{
using System.Collections.Generic;
using System.Configuration;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using global::PayPal;
@james-dibble
james-dibble / gist:8801248
Created February 4, 2014 10:29
PayPal REST API SDK Configuration
<configuration>
<configSections>
<section name="paypal" type="PayPal.Manager.SDKConfigHandler, PayPalCoreSDK" />
</configSections>
<paypal>
<accounts>
<account apiUsername="" apiPassword="" applicationId="" apiSignature="" />
</accounts>
<settings>
<add name="mode" value="sandbox" />