Skip to content

Commit

Permalink
Implement Receive payment in wallet.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfiori committed Sep 10, 2015
1 parent 7dcb9d7 commit 98a7153
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BitcoinLib/BRL/Util_BRL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static class Util_BRL
const string currencySymbolBRL = "BRL";

/// <summary>
/// Pega o ticker da Blockchain com o valor em BRL.
/// Retorna o ticker da Blockchain com o valor em BRL.
/// </summary>
/// <param name="apiCode">Código da API.</param>
/// <returns>Retorna Buy, Last, Price15m, Sell, Symbol </returns>
Expand Down
1 change: 1 addition & 0 deletions BitcoinLib/BitcoinLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<ItemGroup>
<Compile Include="Bitcoin.cs" />
<Compile Include="BlockchainAPI\ExchangeRates.cs" />
<Compile Include="BlockchainAPI\Receive.cs" />
<Compile Include="BlockchainAPI\Wallet.cs" />
<Compile Include="BRL\Util_BRL.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down
27 changes: 27 additions & 0 deletions BitcoinLib/BlockchainAPI/Receive.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Info.Blockchain.API.Receive;

namespace BitcoinLib.BlockchainAPI
{
/// <summary>
/// https://blockchain.info/api/api_receive
/// </summary>
public class Receive
{
/// <summary>
/// This method creates a unique address which should be presented to the customer. Any payments sent to this address will be forwarded to your own bitcoin address. Each time a payment is forwarded the callback URL will be called.
/// </summary>
/// <param name="ReceiveAddress">Your Receiving Bitcoin Address.</param>
/// <param name="CallBackURL">The callback URL to be notified when a payment is received. Remember to URL.</param>
/// <param name="apiCode">API Code.</param>
/// <returns></returns>
public static ReceiveResponse ReceivePayments(string ReceiveAddress, string CallBackURL, string apiCode = null)
{
return Info.Blockchain.API.Receive.Receive.ReceiveFunds(ReceiveAddress, CallBackURL, apiCode);
}
}
}

0 comments on commit 98a7153

Please sign in to comment.