| AmountOfMoney amountOfMoney = new AmountOfMoney(); |
| amountOfMoney.setAmount(100L); |
| amountOfMoney.setCurrencyCode("EUR"); |
| |
| Address address = new Address(); |
| address.setCountryCode("NL"); |
| |
| Customer customer = new Customer(); |
| customer.setBillingAddress(address); |
| customer.setMerchantCustomerId("1234"); |
| |
| Order order = new Order(); |
| order.setAmountOfMoney(amountOfMoney); |
| order.setCustomer(customer); |
| |
| CreateHostedCheckoutRequest createHostedCheckoutRequest = new CreateHostedCheckoutRequest(); |
| createHostedCheckoutRequest.setOrder(order); |
| |
| CreateHostedCheckoutResponse response = client.merchant("merchantId").hostedcheckouts().create(createHostedCheckoutRequest); |
| var amountOfMoney = new AmountOfMoney(); |
| amountOfMoney.Amount = 100L; |
| amountOfMoney.CurrencyCode = "EUR"; |
| |
| var address = new Address(); |
| address.CountryCode = "NL"; |
| |
| var customer = new Customer(); |
| customer.BillingAddress = address; |
| customer.MerchantCustomerId = "1234"; |
| |
| var order = new Order(); |
| order.AmountOfMoney = amountOfMoney; |
| order.Customer = customer; |
| |
| var createHostedCheckoutRequest = new CreateHostedCheckoutRequest(); |
| createHostedCheckoutRequest.Order = order; |
| |
| var response = await client.V1.WithNewMerchant("merchantId").Hostedcheckouts.Create(createHostedCheckoutRequest); |
| var body = { |
| "order": { |
| "amountOfMoney": { |
| "amount": 1000, |
| "currencyCode": "EUR" |
| }, |
| "customer": { |
| "merchantCustomerId" : "1234", |
| "billingAddress": { |
| "countryCode": "NL" |
| } |
| } |
| } |
| } |
| |
| const sdkResponse = await client.v1.hostedcheckouts.create("merchantId", body); |
| $amountOfMoney = new AmountOfMoney(); |
| $amountOfMoney->amount = 100; |
| $amountOfMoney->currencyCode = 'EUR'; |
| |
| $address = new Address(); |
| $address->countryCode = 'NL'; |
| |
| $customer = new Customer(); |
| $customer->billingAddress = $address; |
| $customer->merchantCustomerId = '1234'; |
| |
| $order = new Order(); |
| $order->amountOfMoney = $amountOfMoney; |
| $order->customer = $customer; |
| |
| $createHostedCheckoutRequest = new CreateHostedCheckoutRequest(); |
| $createHostedCheckoutRequest->order = $order |
| |
| org.tuckey.web.filters.urlrewrite.UrlRewriteWrappedResponse@2e603c87 = $client->v1()->merchant('merchantId')->hostedcheckouts()->create($createHostedCheckoutRequest); |
| amount_of_money = AmountOfMoney() |
| amount_of_money.amount = 100 |
| amount_of_money.currency_code = 'EUR' |
| |
| address = Address() |
| address.country_code = 'NL' |
| |
| customer = Customer() |
| customer.billing_address = address |
| customer.merchant_customer_id = '1234' |
| |
| order = Order() |
| order.amount_of_money = amount_of_money |
| order.customer = customer |
| |
| create_hosted_checkout_request = CreateHostedCheckoutRequest() |
| create_hosted_checkout_request.order = order |
| |
| response = client.v1().merchant('merchantId').hostedcheckouts().create(create_hosted_checkout_request) |
| amount_of_money = Domain::AmountOfMoney.new |
| amount_of_money.amount = 100 |
| amount_of_money.currency_code = 'EUR' |
| |
| address = Domain::Address.new |
| address.country_code = 'NL' |
| |
| customer = Domain::Customer.new |
| customer.billing_address = address |
| customer.merchant_customer_id = '1234' |
| |
| order = Domain::Order.new |
| order.amount_of_money = amount_of_money |
| order.customer = customer |
| |
| create_hosted_checkout_request = Domain::CreateHostedCheckoutRequest.new |
| create_hosted_checkout_request.order = order |
| |
| response = client.v1.merchant('merchantId').hostedcheckouts.create(create_hosted_checkout_request) |
| var amountOfMoney domain.AmountOfMoney |
| amountOfMoney.Amount = connectsdk.NewInt64(100) |
| amountOfMoney.CurrencyCode = connectsdk.newString("EUR") |
| |
| var address domain.Address |
| address.CountryCode = connectsdk.newString("NL") |
| |
| var customer domain.Customer |
| customer.BillingAddress = &address |
| customer.MerchantCustomerID = connectsdk.NewString("1234") |
| |
| var order domain.Order |
| order.AmountOfMoney = &amountOfMoney |
| order.Customer = &customer |
| |
| var createHostedCheckoutRequest domain.CreateHostedCheckoutRequest |
| createHostedCheckoutRequest.Order = &order |
| |
| response, err := client.V1().Merchant("merchantId").Hostedcheckouts().Create(createHostedCheckoutRequest, nil) |
| { |
| "order": { |
| "amountOfMoney": { |
| "currencyCode": "EUR", |
| "amount": 1000 |
| }, |
| "customer": { |
| "merchantCustomerId": 1234, |
| "billingAddress": { |
| "countryCode": "NL" |
| } |
| } |
| }, |
| "hostedCheckoutSpecificInput": { |
| "returnUrl": "https://example.org/", |
| "locale": "en_GB", |
| "variant": "138" |
| } |
| } |