Skip to content
Permalink
Browse files

API domain changed

  • Loading branch information...
MaximKalga committed May 3, 2019
1 parent 8daf3d1 commit 966fe6c19d9a1440744f8560f9bab7d9a217cfc8
Showing with 4 additions and 4 deletions.
  1. +2 −2 Readme.md
  2. +1 −1 Sources/Core/XPaymentViewController.swift
  3. +1 −1 xBit_iOS_SDK.podspec
@@ -148,7 +148,7 @@ $ git submodule update --init --recursive

## Usage

To start accepting payments in xBit you need to create [xChange](https://xbitcrypto.com/) account, configure a [Merchant](https://xbitcrypto.com/merchant/) and get your API Key and API Secret. To initiate a payment, you need to import library and call it's method this way to get a payment ViewController. After that you should present it:
To start accepting payments in xBit you need to create [xChange](https://myxpay.net/) account, configure a [Merchant](https://myxpay.net/merchant/) and get your API Key and API Secret. To initiate a payment, you need to import library and call it's method this way to get a payment ViewController. After that you should present it:

``` swift
@@ -274,7 +274,7 @@ def process_callback(request):
## Currency rates

You can get xBit rates in JSON format sending GET request to Currency Rates endpoint:<br />
[https://xbitcrypto.com/api/v1/xbit_currency_rates/](https://xbitcrypto.com/api/v1/xbit_currency_rates/)
[https://myxpay.net/api/v1/xbit_currency_rates/](https://myxpay.net/api/v1/xbit_currency_rates/)


#### Response example:
@@ -51,7 +51,7 @@ final class XPaymentViewController: UIViewController {
override public func viewDidLoad() {
super.viewDidLoad()

let checkoutUrl = URL(string: "https://xbitcrypto.com/checkout/" +
let checkoutUrl = URL(string: "https://myxpay.net/checkout/" +
"?api_key=" + apiKey +
"&amount=" + amount +
"&order_id=" + orderId +
@@ -3,7 +3,7 @@ Pod::Spec.new do |s|
s.version = '0.0.3'
s.license = { :type => "MIT", :file => "LICENSE" }
s.summary = 'xBit iOS payments library'
s.homepage = 'https://xbitcrypto.com'
s.homepage = 'https://myxpay.net'
s.social_media_url = 'https://twitter.com/vihlayew'
s.authors = { "Vihlayew Alex" => "vihlayew.alex@gmail.com" }
s.source = { :git => "https://github.com/xcompanies/xBit-iOS-SDK.git", :tag => s.version.to_s }

0 comments on commit 966fe6c

Please sign in to comment.
You can’t perform that action at this time.