Integration with Beanstream’s payments gateway is a simple, flexible solution.
You can choose between a straightforward payment requiring very few parameters; or, you can customize a feature-rich integration.
To assist as a centralized record of all your sales, we also accept cash and cheque transactions.
For very detailed information on the Payments API, look at the Beanstream developer portal's documentation.
Before you begin making purchases, you need to create a Beanstream API object. It holds your user credentials and provides access to the various APIs.
Gateway beanstream = new Gateway () {
MerchantId = YOUR_MERCHANT_ID,
PaymentsApiKey = "YOUR_API_KEY",
ApiVersion = "1"
};
Perform a credit card purchase.
PaymentResponse response = beanstream.Payments.MakePayment (
new CardPaymentRequest {
Amount = 100.00,
OrderNumber = "myRandomOrderId0001",
Card = new Card {
Name = "John Doe",
Number = "5100000010001004",
ExpiryMonth = "12",
ExpiryYear = "18",
Cvd = "123"
}
}
);