Skip to content

konfig-dev/splitit-web-php-guzzle6-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

splitit-web-php-guzzle6-sdk

Splitit's Web API

Packagist

Table of Contents

Installation & Usage

Requirements

This library requires PHP ^7.0

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/konfig-dev/splitit-web-php-guzzle6-sdk.git"
    }
  ],
  "require": {
    "konfig/splitit-web-php-guzzle6-sdk": "3.0.10"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/splitit-web-php-guzzle6-sdk/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$splitit = new \Splitit\Client(
    getenv("SPLITIT_CLIENT_ID"),
    getenv("SPLITIT_CLIENT_SECRET")
);

$result = $splitit->installmentPlan->checkEligibility(
    "X-Splitit-IdempotencyKey_example", 
    "", 
    [
        "total_amount" => 3.14,
        "number_of_installments" => 1,
        "purchase_method" => "InStore",
        "strategy" => "SecuredPlan",
    ], 
    [
        "card_brand" => "Mastercard",
        "card_type" => "Credit",
    ], 
    [
    ], 
    "string_example"
);

Reference

splitit.installmentPlan.checkEligibility

πŸ› οΈ Usage

$result = $splitit->installmentPlan->checkEligibility(
    "X-Splitit-IdempotencyKey_example", 
    "", 
    [
        "total_amount" => 3.14,
        "number_of_installments" => 1,
        "purchase_method" => "InStore",
        "strategy" => "SecuredPlan",
    ], 
    [
        "card_brand" => "Mastercard",
        "card_type" => "Credit",
    ], 
    [
    ], 
    "string_example"
);

βš™οΈ Parameters

x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

PlanData: PlanData
CardDetails: CardData
BillingAddress: AddressData
ShopperIdentifier: string

πŸ”„ Return

InstallmentsEligibilityResponse

🌐 Endpoint

/api/installmentplans/check-eligibility POST

πŸ”™ Back to Table of Contents


splitit.installmentPlan.get

πŸ› οΈ Usage

$result = $splitit->installmentPlan->get(
    "installmentPlanNumber_example", 
    "X-Splitit-IdempotencyKey_example", 
    ""
);

βš™οΈ Parameters

installment_plan_number: string
x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

πŸ”„ Return

InstallmentPlanGetResponse

🌐 Endpoint

/api/installmentplans/{installmentPlanNumber} GET

πŸ”™ Back to Table of Contents


splitit.installmentPlan.getEligibilityTermsAndCondition

πŸ› οΈ Usage

$result = $splitit->installmentPlan->getEligibilityTermsAndCondition(
    "ipn_example", 
    "X-Splitit-IdempotencyKey_example", 
    ""
);

βš™οΈ Parameters

ipn: string
x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

πŸ”„ Return

EligibilityTermsAndConditionResponse

🌐 Endpoint

/api/installmentplans/{ipn}/legal GET

πŸ”™ Back to Table of Contents


splitit.installmentPlan.post

πŸ› οΈ Usage

$result = $splitit->installmentPlan->post(
    "X-Splitit-IdempotencyKey_example", 
    "", 
    True, 
    True, 
    [
    ], 
    [
        "total_amount" => 3.14,
        "purchase_method" => "InStore",
    ], 
    [
    ], 
    [
    ], 
    [
    ], 
    [
    ], 
    [
    ], 
    "None", 
    "SecuredPlan", 
    "string_example"
);

βš™οΈ Parameters

x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

AutoCapture: bool
Attempt3dSecure: bool
Shopper: ShopperData
PlanData: PlanDataModel
BillingAddress: AddressDataModel
UxSettings: UxSettingsModel
EventsEndpoints: EventsEndpointsModel
ProcessingData: ProcessingData
x_splitit_test_mode: string
x_splitit_strategy: string
splititclientinfo: string

πŸ”„ Return

InitiatePlanResponse

🌐 Endpoint

/api/installmentplans/initiate POST

πŸ”™ Back to Table of Contents


splitit.installmentPlan.post2

πŸ› οΈ Usage

$result = $splitit->installmentPlan->post2(
    True, 
    True, 
    "X-Splitit-IdempotencyKey_example", 
    "", 
    True, 
    [
    ], 
    [
        "total_amount" => 3.14,
        "purchase_method" => "InStore",
    ], 
    [
    ], 
    [
        "type" => "Card",
    ], 
    [
    ], 
    [
    ], 
    [
    ], 
    "None", 
    "SecuredPlan", 
    "string_example"
);

βš™οΈ Parameters

AutoCapture: bool
TermsAndConditionsAccepted: bool
x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

Attempt3dSecure: bool
Shopper: ShopperData
PlanData: PlanDataModel
BillingAddress: AddressDataModel
PaymentMethod: PaymentMethodModel
ProcessingData: ProcessingData
EventsEndpoints: EventsEndpointsModel
x_splitit_test_mode: string
x_splitit_strategy: string
splititclientinfo: string

πŸ”„ Return

InstallmentPlanCreateResponse

🌐 Endpoint

/api/installmentplans POST

πŸ”™ Back to Table of Contents


splitit.installmentPlan.refund

πŸ› οΈ Usage

$result = $splitit->installmentPlan->refund(
    3.14, 
    "installmentPlanNumber_example", 
    "X-Splitit-IdempotencyKey_example", 
    "", 
    "FutureInstallmentsFirst", 
    "string_example"
);

βš™οΈ Parameters

Amount: float
installment_plan_number: string
x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

RefundStrategy:
ReferenceId: string

πŸ”„ Return

InstallmentPlanRefundResponse

🌐 Endpoint

/api/installmentplans/{installmentPlanNumber}/refund POST

πŸ”™ Back to Table of Contents


splitit.installmentPlan.search

πŸ› οΈ Usage

$result = $splitit->installmentPlan->search(
    "X-Splitit-IdempotencyKey_example", 
    "", 
    "string_example", 
    "string_example", 
    [
        "key": "string_example",
    ]
);

βš™οΈ Parameters

x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

installment_plan_number: string
ref_order_number: string
extended_params: array<string, string>

πŸ”„ Return

InstallmentPlanSearchResponse

🌐 Endpoint

/api/installmentplans/search GET

πŸ”™ Back to Table of Contents


splitit.installmentPlan.updateOrder

πŸ› οΈ Usage

$result = $splitit->installmentPlan->updateOrder(
    "installmentPlanNumber_example", 
    "X-Splitit-IdempotencyKey_example", 
    "", 
    "string_example", 
    "string_example", 
    True, 
    "Pending", 
    3.14
);

βš™οΈ Parameters

installment_plan_number: string
x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

RefOrderNumber: string
TrackingNumber: string
Capture: bool
ShippingStatus:
NewAmount: float

πŸ”„ Return

InstallmentPlanUpdateResponse

🌐 Endpoint

/api/installmentplans/{installmentPlanNumber}/updateorder PUT

πŸ”™ Back to Table of Contents


splitit.installmentPlan.updateOrder2

πŸ› οΈ Usage

$result = $splitit->installmentPlan->updateOrder2(
    "X-Splitit-IdempotencyKey_example", 
    "", 
    "string_example", 
    "string_example", 
    True, 
    "Pending", 
    3.14, 
    [
    ]
);

βš™οΈ Parameters

x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

RefOrderNumber: string
TrackingNumber: string
Capture: bool
ShippingStatus:
NewAmount: float
Identifier: IdentifierContract

πŸ”„ Return

InstallmentPlanUpdateResponse

🌐 Endpoint

/api/installmentplans/updateorder PUT

πŸ”™ Back to Table of Contents


splitit.installmentPlan.verifyAuthorization

πŸ› οΈ Usage

$result = $splitit->installmentPlan->verifyAuthorization(
    "installmentPlanNumber_example", 
    "X-Splitit-IdempotencyKey_example", 
    ""
);

βš™οΈ Parameters

installment_plan_number: string
x_splitit_idempotency_key: string
x_splitit_touch_point: string

TouchPoint

πŸ”„ Return

VerifyAuthorizationResponse

🌐 Endpoint

/api/installmentplans/{installmentPlanNumber}/verifyauthorization GET

πŸ”™ Back to Table of Contents


Author

This PHP package is automatically generated by Konfig

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages