konfig / splitit-web-php-sdk
Splitit's Web API
Installs: 4 996
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.3
- phpunit/phpunit: ^8.0 || ^9.0
- dev-main
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.0
- v1.14.0
- v1.13.0
- v1.12.0
- v1.11.0
- v1.10.0
- v1.9.0
- v1.8.0
- v1.7.0
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- dev-bump
- dev-new-openapi-spec-1732012247914
- dev-new-openapi-spec-1729515712377
- dev-new-openapi-spec-1728459048892
- dev-new-openapi-spec-1727692256614
- dev-new-openapi-spec-1726758104039
- dev-new-openapi-spec-1725886857366
This package is auto-updated.
Last update: 2024-11-19 10:44:52 UTC
README
Splitit's Web API
Table of Contents
- Installation & Usage
- Getting Started
- Reference
splitit.installmentPlan.checkEligibility
splitit.installmentPlan.get
splitit.installmentPlan.getEligibilityTermsAndCondition
splitit.installmentPlan.post
splitit.installmentPlan.post2
splitit.installmentPlan.refund
splitit.installmentPlan.search
splitit.installmentPlan.updateOrder
splitit.installmentPlan.updateOrder2
splitit.installmentPlan.verifyAuthorization
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-sdk.git" } ], "require": { "konfig/splitit-web-php-sdk": "3.0.8" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
<?php require_once('/path/to/splitit-web-php-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
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
🌐 Endpoint
/api/installmentplans/{installmentPlanNumber}
GET
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
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
RedirectUrls: InitiateRedirectionEndpointsModel
UxSettings: UxSettingsModel
EventsEndpoints: EventsEndpointsModel
ProcessingData: ProcessingData
x_splitit_test_mode: string
x_splitit_strategy: string
splititclientinfo: string
🔄 Return
🌐 Endpoint
/api/installmentplans/initiate
POST
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
RedirectUrls: RedirectionEndpointsModel
ProcessingData: ProcessingData
EventsEndpoints: EventsEndpointsModel
x_splitit_test_mode: string
x_splitit_strategy: string
splititclientinfo: string
🔄 Return
🌐 Endpoint
/api/installmentplans
POST
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
🌐 Endpoint
/api/installmentplans/{installmentPlanNumber}/refund
POST
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
🌐 Endpoint
/api/installmentplans/search
GET
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
🌐 Endpoint
/api/installmentplans/{installmentPlanNumber}/updateorder
PUT
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
🌐 Endpoint
/api/installmentplans/updateorder
PUT
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
🌐 Endpoint
/api/installmentplans/{installmentPlanNumber}/verifyauthorization
GET
Author
This PHP package is automatically generated by Konfig