Documentation
HOMEAPI ReferencePayment Demo
English
English
  • 📖Home
  • API Reference
  • Wallet
    • Activate Account
    • Multi-currency Balance
    • Global Collection Account
    • Payout
    • Account settings
  • Payment
    • Get started
    • Accept a payment
      • Hosted payment page
      • In-page checkout
      • iOS
      • Android
      • API-Direct
    • Save a card during payment
      • iOS
      • Android
    • Pre-authorize a payment
    • 3D secure authentication
      • iOS
      • Android
    • Subscriptions
      • Recurring
    • Add payment methods
      • Supported APM codes and attributes list
      • APM Integration Guide
    • After the payment
      • Webhook
      • Refunds
      • Response handling
    • About the APIs
      • Currencies
      • Payments
        • How payments work
  • Business Operation
    • MoneyCollect dashboard
      • Home
      • Mobile apps
    • Account
      • Your account
      • Multiple Accounts
      • Account security
    • Alternative payment methods
      • Apply for APMs from your dashboard
        • Google pay
    • Customers
      • Customer portal
    • Products & Prices
      • Pricing table
    • Invoicing
      • How invoicing works
      • Use the dashboard
        • Customers
        • Products and prices
        • Invoice page
      • Hosted Invoice Page
      • No-code quickstart guide
    • Subscriptions
      • Subscription status
      • Subscription settings
      • Create a subscription
    • Pricing
      • Reserves
      • Fees for APMs
    • Payouts
    • Financial reports
      • Select preferred report
      • Balance summary
      • Payout reconciliation
    • Partners
      • Partner pricing
    • Risk management
      • Disputes
        • How disputes work
        • Respond to disputes
          • Dispute reasons
        • Measuring disputes
      • Fraud
        • Monitoring programs
        • High risk merchant lists
        • Tools
        • Fraud prevention
    • Start a team
      • Teams
      • User roles
    • Startup incorporation
  • Developer tools
    • API-Keys
    • Libraries
    • Plugins
      • WooCommerce
      • Magento
        • Using Magento 2 Admin Panel
      • Shopify
        • MoneyCollect Payments App
        • Legacy Version
          • Credit Card Direct Payments App
          • Credit Card Redirected Payments App
          • Alternative Payment Methods App
      • Wix
      • SHOPLINE
      • SHOPLAZZA
      • Xshoppy
      • ShopBase
      • PrestaShop
      • OpenCart
      • AllValue
        • Using Allvalue Panel
Powered by GitBook
On this page
  • Choose your integration
  • Choose payment methods
  1. Payment

Add payment methods

Accepting more payment methods helps your business expand its global reach and improve checkout conversion.

PreviousRecurringNextSupported APM codes and attributes list

Last updated 1 year ago

Choose your integration

MoneyCollect Checkout

Checkout is a MoneyCollect-hosted payment form that you can configure in the . MoneyCollect selects enabled payment methods from your by default but you can also manually select the payment methods using the .

MoneyCollect.apiKey = "live_pr_xxx";
List<String> paymentMethodTypes = new ArrayList<>();
paymentMethodTypes.add("klarna");
paymentMethodTypes.add("card");
paymentMethodTypes.add("kakao_pay");
SessionCreateParams params =
    SessionCreateParams.builder()
           .setReturnUrl("http://localhost:4242/success.html")
           .setCancelUrl("http://localhost:4242/cancel.html")
           .setNotifyUrl("http://localhost:4242/success.html")
           .setPaymentMethodTypes(paymentMethodTypes)
           .setAmountTotal(1800L)
           .setCurrency("USD")
           .setOrderNo("C"+System.currentTimeMillis())
           .setWebsite("https://www.localhost.com")
           .setBillingDetails(SessionCreateParams.BillingDetails.builder()
                   .setAddress(SessionCreateParams.Address.builder()
                           .setCity("Hong Kong")
                           .setCountry("CN")
                           .setLine1("193 Prince Edward Road")
                           .setPostalCode("12222")
                           .setState("Hong Kong").build())
                   .setEmail("test@mc.com")
                   .setFirstName("Su")
                   .setLastName("Diana")
                   .setPhone("12222211")
                   .build()).build();
Session session = Session.create(params);
response.redirect(session.getUrl());

Payment Element

MoneyCollect.apiKey = "live_pr_xxx";
PaymentMethod paymentMethod = PaymentMethod.create(
    PaymentMethodCreateParams.builder()
            .setType(PaymentMethodCreateParams.PaymentMethodType.Klarna)
            .setBillingDetails(PaymentMethodCreateParams.BillingDetails.builder()
                    .setAddress(PaymentMethodCreateParams.Address.builder()
                                .setCity("Hong Kong")
                                .setCountry("CN")
                                .setLine1("193 Prince Edward Road")
                                .setPostalCode("12222")
                                .setState("Hong Kong").build())
                    .setEmail("test@mc.com")
                    .setFirstName("Su")
                    .setLastName("Diana")
                    .setPhone("12222211")
                    .build())
            .build()
);
List<String> paymentMethodTypes = new ArrayList<>();
paymentMethodTypes.add(PaymentMethodCreateParams.PaymentMethodType.Klarna.getValue());
PaymentCreateParams params =
    PaymentCreateParams.builder()
            .setAmount(2000L)
            .setCurrency("USD")
            .setOrderNo("{order_no}")
            .setNotifyUrl("http://localhost:4242/notify")
            .setReturnUrl("http://localhost:4242/notify")
            .setPaymentMethodTypes(paymentMethodTypes)
            .setPaymentMethod(paymentMethod.getId())
            .setFromChannel("APP") //(WEB, H5, APP, MINI)
            .setIp("114.155.112.231") //Customer IP
            .setConfirm(true)
            .setAppScheme("moneycollect://payment:8080/webpay")
            .build();
Payment payment = Payment.create(params);
if("requires_action".equals(payment.getStatus())) {
        response.redirect(payment.getNextAction().getRedirectToUrl());
}

Choose payment methods

If you let MoneyCollect select the payment methods activated from your Dashboard, we can automatically display all compatible payment methods to your customers depending on the chosen currency and other restrictions such as maximum transaction amounts. MoneyCollect also dynamically reorders them to prioritize the most relevant payment methods based on the customer’s currency, location and other characteristic parameters to help you increase conversion further.

The Payment Element is a UI component that you embed into your website or app. When customers are ready to complete a purchase, you and configure how you want to display payment methods. You can enable automatic payment methods and let MoneyCollect select enabled payment methods from your Dashboard, or list payment methods manually with .

Your customers see the available payment methods during the checkout process. You can either manage payment methods from the or list payment methods manually in code.

MoneyCollect Dashboard
Learn more about local payment methods
Dashboard
Dashboard
payment method API
payment method types
create a Payment object