Declare.Symbol.RGB.Red75.png
 

Please select your payment terms below.


Please enter your credit card details below. This information will only be used to hold your memberhip application. If accepted, you will be contacted and payment will be processed the next business day unless otherwise notified.


// Set your secret key: remember to change this to your live secret key in production
// See your keys here: https://dashboard.stripe.com/account/apikeys
Stripe.apiKey = "sk_live_defrZyRKktDgRMjtlpHh3uNT";

// Create a Customer:
Map<String, Object> customerParams = new HashMap<>();
customerParams.put("source", "tok_mastercard");
customerParams.put("email", "paying.user@example.com");
Customer customer = Customer.create(customerParams);

// Charge the Customer instead of the card:
Map<String, Object> chargeParams = new HashMap<>();
chargeParams.put("amount", 1000);
chargeParams.put("currency", "usd");
chargeParams.put("customer", customer.getId());
Charge charge = Charge.create(chargeParams);

// YOUR CODE: Save the customer ID and other info in a database for later.

// When it's time to charge the customer again, retrieve the customer ID.
Map<String, Object> params = new HashMap<>();
params.put("amount", 1500); // $15.00 this time
params.put("currency", "usd");
params.put("customer", customerId); // Previously stored, then retrieved
Charge charge = Charge.create(params);

For more information please email members@declare.co