Skip to content
Permalink
Browse files

API domain changed

  • Loading branch information...
MaximKalga committed May 3, 2019
1 parent 724107e commit 0920a6f78143dc9049ffda9effacb87c8e6b940f
Showing with 4 additions and 4 deletions.
  1. +2 −2 Readme.md
  2. +2 −2 sdk/src/main/java/com/xbitcrypto/sdk/PaymentPresenter.kt
@@ -101,7 +101,7 @@ The library module is copied to your project, so you can actually edit the libra

## 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 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 Activity with payment View. After that you should present it:

<details>
@@ -261,7 +261,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:
@@ -35,7 +35,7 @@ class PaymentPresenterImpl: PaymentPresenterInterface {

override fun createLink(apiKey: String, amount: Double, orderId: String, callbackUrlString: String): String {
try {
val checkoutUrl = URL("https://xbitcrypto.com/checkout/" +
val checkoutUrl = URL("https://myxpay.net/checkout/" +
"?api_key=" + apiKey +
"&amount=" + amount +
"&order_id=" + orderId +
@@ -45,6 +45,6 @@ class PaymentPresenterImpl: PaymentPresenterInterface {
println("Create link error")
e.printStackTrace()
}
return "https://xbitcrypto.com"
return "https://myxpay.net"
}
}

0 comments on commit 0920a6f

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