PATCH /api/v1/payment_methods/credit_card
Update the Credit Card Payment Methods

Update the Credit Card payment method record for the onboarding live application of the currently authenticated merchant.

betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.

Examples

  • cURL
  • Node.js
  • Ruby
curl -X PATCH https://komoju.com/api/v1/live_application/payment_methods/credit_card \
  -u sk_123456: \
  -d "has_processed_cc_before=true" 
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var patch_data = querystring.stringify({
  'has_processed_cc_before': 'true'
});

var patch_options = {
  host: 'komoju.com',
  port: '443',
  path: '/api/v1/live_application/payment_methods/credit_card',
  method: 'PATCH',
  headers: {
    'Authorization': auth,
    'Content-Length': Buffer.byteLength(patch_data)
  }
};

var patch_req = https.request(patch_options, function(res) {
    res.setEncoding('utf8');
    res.on('data', function (chunk) {
        console.log(chunk);
    });
});

patch_req.write(patch_data);
patch_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/payment_methods/credit_card')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
  'Content-Type' => 'application/json',
  'Authorization' => "Basic #{auth}"
}

body = {
  has_processed_cc_before: "true"
}

res = https.patch(
  uri.path,
  body.to_json,
  headers
)

puts res.body
{
  "has_processed_cc_before": true,
  "conducts_door_to_door_sales": false,
  "conducts_telemarketing": false,
  "conducts_mlm_scheme": false,
  "conducts_business_opportunity_scheme": false,
  "violated_consumer_contract_act": false,
  "pci_compliance_proofs": [
    "7estyza4j4a5s1wdqhhe0r4f7"
  ]
}

Params

Param name Description
has_processed_cc_before
optional

Has your business processed credit card transactions before?

conducts_door_to_door_sales
optional

Does your company operate Door-to-Door sales?

conducts_telemarketing
optional

Does your company operate Telemarketing Sales?

conducts_mlm_scheme
optional

Does your company operate Network Marketing?

conducts_business_opportunity_scheme
optional

Does your company operate Business Opportunity (Biz-Opp)?

violated_consumer_contract_act
optional

Has your business violated either the Specified Commercial Transaction Act (特定商取引法) in the past five years or the Consumer Contract Act (消費者契約法) and lost a lawsuit due to these violations in the past?

pci_compliance_proofs
optional

An arrary of file ID. Please upload your PCI Compliance Proof via the File API. After uploading, please provide the ID of file returned by the File API.