Turkpin API With this package, you can create an epin order and deliver it to your customers

Overview

Turkpin API Package

Latest Version on Packagist Total Downloads

Turkpin API With this package, you can create an epin order and deliver it to your customers. Official Documentation

Installation

You can install the package via composer:

composer require anilken/turkpin-api

Usage

epinProducts($epin_id); // Example Output [ { "name": "Google Play kodu 25 TL", "id": "8209", "stock": "377", "min_order": "1", "max_order": "0", "price": "24.5000", "tax_type": [] }, ... ] $api->epinOrder($epin_id, $product_id, $qty = 1, $character = ''); // Example Output { "status": "Success", "order_no": "21061113513501", "total_amount": "1", "list": [ { "code": "8PFG-XXXX-FL3C-XXXX", "desc": "Test Ürün" } ] } $api->checkStatus($order_no); // Example Output { "status_code": "000", "order_no": "21061113513501", "order_code": "2", "order_status_description": "Siparişiniz Tamamlandı", "check_date": "11-06-2021 13:51:53", "extra": "İPTAL SEBEBI", } $api->checkBalance(); // Example Output { "balance": "996501.2300", "credit": "0.0000", "bonus": "0.000", "spending": "3498.7700" } ">
use Anilken\Turkpin\Turkpin;

$api = new Turkpin('username', 'password');

$api->epinList();

// Example Output

[
  {
    "id": "5",
    "name": "Echo of Soul (EOS)"
  },
  {
    "id": "633",
    "name": "Google Play kodu"
  }
  ...
]


$api->epinProducts($epin_id);

// Example Output

[
  {
    "name": "Google Play kodu 25 TL",
    "id": "8209",
    "stock": "377",
    "min_order": "1",
    "max_order": "0",
    "price": "24.5000",
    "tax_type": []
  },
  ...
]

$api->epinOrder($epin_id, $product_id, $qty = 1, $character = '');

// Example Output

{
  "status": "Success",
  "order_no": "21061113513501",
  "total_amount": "1",
  "list": [
    {
      "code": "8PFG-XXXX-FL3C-XXXX",
      "desc": "Test Ürün"
    }
  ]
}

$api->checkStatus($order_no);

// Example Output

{
  "status_code": "000",
  "order_no": "21061113513501",
  "order_code": "2",
  "order_status_description": "Siparişiniz Tamamlandı",
  "check_date": "11-06-2021 13:51:53",
  "extra": PTAL SEBEBI",
}

$api->checkBalance();

// Example Output

{
  "balance": "996501.2300",
  "credit": "0.0000",
  "bonus": "0.000",
  "spending": "3498.7700"
}

Exception Codes

Code Message
0 Empty api result try again
1 User not found, check your username and password.
2 There is no access from your IP address. Please check your IP Address.
3 Invalid command, check cmd parameter.
4 Message field is a mandatory field.
5 An error occurred while processing.
6 This Account is not authorized to use Turkpin API
7 This Account is not available for Turkpin API.
8 Game ID is missing
9 The server list for the game could not be found
10 Missing or incorrect order format.
11 The product was not found.
12 The product is out of stock.
13 The number of orders must be min% s.
14 Dealer Balance Insufficient.
15 Payment type is invalid
16 Missing or incorrect notification format. Please check fields
17 You have entered a missing or incorrect notification number. Please check the notification_id value
18 Number of orders must be max% s.
19 System error, error code:% s
20 Please enter correct operator and phone number for GSM TL top up
21 The amount to be reported for payment must be greater than 0
22 This product is not purchased by us.
23 The site is currently closed for an update or maintenance.
99 Order Not Found. Check Order Number
111 XML Format Error. Please check the XML format you sent.
--- Custom error codes added to this package
101 Failed to get game list
102 Failed to get products list
103 Failed to get balance

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

You might also like...
A PHP library that can be used manually as well as a CLI script that you can just run on your file

Run phpcs on files and only report new warnings/errors compared to the previous version. This is both a PHP library that can be used manually as well

iOrder is a light weight prototype for a order processing MIS.

Order Processing MIS. iOrder is a light weight prototype for a order processing MIS. Features Centralized order management Merchants definitely benefi

Magento 2 Magetrend PdfTemplates extension override pdf tempate in order,invoice,credit-memo

Magento 2 Magetrend PdfTemplates extension override pdf tempate in order,invoice,credit-memo

Magento 2 Product Allocation extension allows the to admin manage all products in an order

Magento 2 Product Allocation extension allows the to admin manage all products in an order, making sure that products can only be moved to cart if sufficient allocation is available.

Magento Quickorder module, enables bulk order creation by inputting SKUs & quantities.

Extension User Guide This extension was developed to enable merchants to allow customers to place multiple orders of various quanities quickly, in an

🌏 Webnux 🌏 , a videos streaming website where you can watch what you want when you want.
🌏 Webnux 🌏 , a videos streaming website where you can watch what you want when you want.

🎥 WEBNUX 🎥 Welcome to 🌏 Webnux 🌏 , a videos streaming website where you can watch what you want when you want. ☀️ ☀️ OBJECTIFS ☀️ ☀️ - A sessi

Magento 2 Megamenu extension is an indispensable component, and plays the role of website navigation to help customers easily categorize and find information
Magento 2 Megamenu extension is an indispensable component, and plays the role of website navigation to help customers easily categorize and find information

Mageno 2 Mega Menu (Magicmenu) helps you create neat and smart navigation menus to display the main categories on your website.

MailChimp for Magento 2. Syncs all data (subscriber, customers, orders, products) and enables marketing automation with email campaigns, automations, ads, postcards and more.

MailChimp for Magento 2. Syncs all data (subscriber, customers, orders, products) and enables marketing automation with email campaigns, automations, ads, postcards and more.

Comments
Releases(v1.0.6)
  • v1.0.6(Sep 1, 2022)

  • v1.0.5(Sep 1, 2022)

    What's Changed

    • Bump dependabot/fetch-metadata from 1.3.1 to 1.3.3 by @dependabot in https://github.com/anilken/turkpin-api/pull/4

    New Contributors

    • @dependabot made their first contribution in https://github.com/anilken/turkpin-api/pull/4

    Full Changelog: https://github.com/anilken/turkpin-api/compare/v1.0.4...v1.0.5

    Source code(tar.gz)
    Source code(zip)
  • v1.0.4(May 24, 2022)

    What's Changed

    • Api www Required by @anilken in https://github.com/anilken/turkpin-api/pull/3

    Full Changelog: https://github.com/anilken/turkpin-api/compare/v1.0.3...v1.0.4

    Source code(tar.gz)
    Source code(zip)
  • v1.0.3(May 20, 2022)

    What's Changed

    • Add check epin stock by @anilken in https://github.com/anilken/turkpin-api/pull/2

    Full Changelog: https://github.com/anilken/turkpin-api/compare/v1.0.2...v1.0.3

    Source code(tar.gz)
    Source code(zip)
  • v1.0.2(May 19, 2022)

    What's Changed

    • Live api fix by @anilken in https://github.com/anilken/turkpin-api/pull/1

    Full Changelog: https://github.com/anilken/turkpin-api/compare/v1.0.1...v1.0.2

    Source code(tar.gz)
    Source code(zip)
  • v1.0.1(May 19, 2022)

  • v1.0.0(May 11, 2022)

Owner
ANILKEN
ANILKEN
Guest to Customer for Magento2 - Quickly and easily convert existing guest checkout customers to registered customers.

Guest to Customer for Magento 2.0 For Magento 2.0.x, 2.1.x, 2.2.x, 2.3.x and 2.4.x In general E-commerce, shoppers do not like to create an account du

MagePal :: Magento Extensions 66 Oct 7, 2022
Orangescrum is a simple yet powerful free and open source project management software that helps team to organize their tasks, projects and deliver more.

Free, open source Project Management software Introduction Orangescrum is the simple yet powerful free and open source project management software tha

Orangescrum 110 Dec 30, 2022
Easily create WooCommerce replacement orders for your customers.

Support Orders for WooCommerce Requires PHP: 7.0 WP requires at least: 5.7 WP tested up to: 5.7 WC requires at least: 5.6.0 WC tested up to: 5.8.0 Sta

DevPress 5 Feb 24, 2022
The Ravioli WooCommerce plugin helps you ship your order with Ravioli.

=== Ravioli for WooCommerce === Contributors: canolcer Tags: ravioli, ecommerce, shipping Requires at least: 5.0 Tested up to: 6.0.1 Stable tag: trunk

Ravioli 2 Nov 7, 2022
Greyhole uses Samba to create a storage pool of all your available hard drives, and allows you to create redundant copies of the files you store.

Greyhole Greyhole is an application that uses Samba to create a storage pool of all your available hard drives (whatever their size, however they're c

Guillaume Boudreau 245 Dec 18, 2022
This plugin allows you to display code from a repository, such as Github, Gitlab or others in order to use it as a resource in the courses.

Fetch Code This plugin allows you to display code from a repository, such as Github, Gitlab or others in order to use it as a resource in the courses.

Cambá Laboratorio de Tecnología 0 Dec 26, 2021
It is a simple blog application coded with PHP, HTML, CSS. You can develop, edit. You can see it as a skeleton. ⚡

PHP-BLOG-SYSTEM Simple blog system Features Adding Text Update Text Text Deletion User Login and register Bootstrap Design Profile Page How to use blo

Selçuk 2 Aug 21, 2022