shop

Stripe.apiKey = "sk_test_6G0zNUFmtZbX2YQ2kzkAXAnm00O0gP4yy2"; List paymentMethodTypes = new ArrayList<>(); paymentMethodTypes.add("card"); List lineItems = new ArrayList<>(); Map lineItem1 = new HashMap<>(); lineItem1.put("name", "T-shirt"); lineItem1.put( "description", "Comfortable cotton t-shirt" ); lineItem1.put("amount", 1500); lineItem1.put("currency", "gbp"); lineItem1.put("quantity", 2); lineItems.add(line_item1); Map params = new HashMap<>(); params.put( "success_url", "https://example.com/success" ); params.put( "cancel_url", "https://example.com/cancel" ); params.put( "payment_method_types", paymentMethodTypes ); params.put("line_items", lineItems); Session session = Session.create(params);

Post a comment

Latest Instagrams

© scarletslippers. Design by FCD.