From 97ca5a3cf29914b3ce002d5584677f36f52e692c Mon Sep 17 00:00:00 2001 From: Nic West Date: Tue, 1 Nov 2016 12:05:20 +0000 Subject: [PATCH] update readme --- README.md | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/README.md b/README.md index 2c46175..efedff1 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,11 @@ * POST /v1/identity/openidconnect/tokenservice * GET /v1/identity/openidconnect/userinfo/?schema=**SCHEMA** * POST /v1/payments/payouts?sync_mode=true + * GET /v1/payment-experience/web-profiles + * POST /v1/payment-experience/web-profiles + * GET /v1/payment-experience/web-profiles/**ID** + * PUT /v1/payment-experience/web-profiles/**ID** + * DELETE /v1/payment-experience/web-profiles/**ID** #### Missing endpoints It is possible that some endpoints are missing in this SDK Client, but you can use built-in **paypalsdk** functions to perform a request: **NewClient -> NewRequest -> SendWithAuth** @@ -232,6 +237,61 @@ payout := paypalsdk.Payout{ payoutResp, err := c.CreateSinglePayout(payout) ``` +### Create web experience profile + +```go +webprofile := WebProfile{ + Name: "YeowZa! T-Shirt Shop", + Presentation: Presentation{ + BrandName: "YeowZa! Paypal", + LogoImage: "http://www.yeowza.com", + LocaleCode: "US", + }, + + InputFields: InputFields{ + AllowNote: true, + NoShipping: NoShippingDisplay, + AddressOverride: AddrOverrideFromCall, + }, + + FlowConfig: FlowConfig{ + LandingPageType: LandingPageTypeBilling, + BankTXNPendingURL: "http://www.yeowza.com", + }, +} + +result, err := c.CreateWebProfile(webprofile) +``` + +### Get web experience profile + +```go +webprofile, err := c.GetWebProfile("XP-CP6S-W9DY-96H8-MVN2") +``` + +### List web experience profile + +```go +webprofiles, err := c.GetWebProfiles() +``` + +### Update web experience profile + +```go + +webprofile := WebProfile{ + ID: "XP-CP6S-W9DY-96H8-MVN2", + Name: "Shop YeowZa! YeowZa! ", +} +err := c.SetWebProfile(webprofile) +``` + +### Delete web experience profile + +```go +err := c.DeleteWebProfile("XP-CP6S-W9DY-96H8-MVN2") +``` + #### How to Contribute * Fork a repository