Skip to content

Payment methods

Save a customer's payment method once, reuse it in later orders, and control when it remains available.

Payment methods let customers save how they pay and reuse it on later orders. Use this API to save a method, retrieve it, update its owner or metadata, and control whether it can be used again.

Each payment method belongs to one customer. When charging a saved method, use it with that same customer. For end-to-end payment flows, see Accept a mobile money payment and Charge repeat customers.

The payment method object

The API returns a paymentMethod envelope for tokenization, lookup, update, and lifecycle operations. Optional properties are omitted when they do not apply or have no value.

Properties

TypeScript SDK responsePaymentMethodv15.0.0

Tokenize a payment method POST /payment_methods/tokenize

Save a customer’s mobile money wallet so they can select it on later orders. This operation does not create an order or charge the wallet. The response returns a pm_… ID for future payments.

Request attributes

The account number must be valid for the selected mobile money network. Use an idempotency key when retrying so the same wallet is not saved twice.

Request

POST/payment_methods/tokenize
cURLbash
curl https://api.inttegro.com/payment_methods/tokenize \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: save-wallet-cu-a1b2-001" \
-d '{
"customer_id": "cu_a1b2c3d4e5",
"custom_data": {
  "checkout_source": "account"
},
"mobile_money": {
  "account_number": "0242057831",
  "network": "mtn"
},
"owner": {
  "address": {
    "country": "GH"
  },
  "name": "Jane Mensah"
},
"type": "mobile_money"
}'
TypeScripttypescript
import { InttegroClient, MobileMoneyNetworks, PaymentMethodTypes } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.paymentMethods.tokenize({
  customerId: "cu_a1b2c3d4e5",
  customData: {
    checkout_source: "account",
  },
  mobileMoney: {
    accountNumber: "0242057831",
    network: MobileMoneyNetworks.MTN,
  },
  owner: {
    address: {
      country: "GH",
    },
    name: "Jane Mensah",
  },
  type: PaymentMethodTypes.MobileMoney,
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/paymentmethod"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := paymentmethod.TokenizeParams{
    CustomerID: "cu_a1b2c3d4e5",
  }
  result, err := client.PaymentMethods.Tokenize(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.payment_methods.tokenize(inttegro.payment_method.TokenizeMobileMoneyRequest(
  customer_id="cu_a1b2c3d4e5",
  custom_data=inttegro.CustomData({
    "checkout_source": "account",
  }),
  mobile_money=inttegro.payment_method.TokenizeMobileMoneyRequestMobileMoney(
    account_number="0242057831",
    network=inttegro.payment_method.MobileMoneyNetwork.MTN,
  ),
  owner=inttegro.payment_method.OwnerInput(
    address=inttegro.payment_method.OwnerInputAddress(
      country="GH",
    ),
    name="Jane Mensah",
  ),
  type=inttegro.payment_method.Type.MOBILE_MONEY,
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->tokenize([
  'customer_id' => 'cu_a1b2c3d4e5',
  'custom_data' => [
    'checkout_source' => 'account',
  ],
  'mobile_money' => [
    'account_number' => '0242057831',
    'network' => \Inttegro\MobileMoneyNetwork::MTN,
  ],
  'owner' => [
    'address' => [
      'country' => 'GH',
    ],
    'name' => 'Jane Mensah',
  ],
  'type' => \Inttegro\PaymentMethodType::MobileMoney,
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.tokenize(
  customer_id: "cu_a1b2c3d4e5",
  custom_data: {
    checkout_source: "account",
  },
  mobile_money: {
    account_number: "0242057831",
    network: Inttegro::MobileMoneyNetwork::MTN,
  },
  owner: {
    address: {
      country: "GH",
    },
    name: "Jane Mensah",
  },
  type: Inttegro::PaymentMethodType::MOBILE_MONEY
)
Javajava
import com.inttegro.Client;
import com.inttegro.paymentmethods.TokenizePaymentMethodParams;
import com.inttegro.RequestOptions;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = TokenizePaymentMethodParams.builder()
      .customerId("cu_a1b2c3d4e5")
      .build();
    var result = client.paymentMethods().tokenize(params, RequestOptions.withIdempotencyKey("save-wallet-cu-a1b2-001"));
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.TokenizeAsync(new PaymentMethodTokenizeRequest {
  CustomerId = "cu_a1b2c3d4e5",
});
Responsejson
{
  "payment_method": {
    "active": true,
    "created_at": "2026-08-30T13:00:00Z",
    "customer_id": "cu_a1b2c3d4e5",
    "custom_data": {
      "checkout_source": "account"
    },
    "fingerprint": "ifp_v1_app_customer",
    "id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
    "mobile_money": {
      "account_number": "****7831",
      "last4": "7831",
      "network": "mtn"
    },
    "owner": {
      "address": {
        "country": "GH"
      },
      "name": "Jane Mensah"
    },
    "type": "mobile_money"
  }
}

Lookup a payment method POST /payment_methods/lookup

Retrieve a saved payment method by ID. Lookup also returns inactive, archived, and ephemeral methods, so check active, archivedAt, and ephemeral before offering it as a payment choice.

Request attributes

TypeScript SDK requestLookupPaymentMethodRequestv15.0.0

Request

POST/payment_methods/lookup
cURLbash
curl https://api.inttegro.com/payment_methods/lookup \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.paymentMethods.lookup({
  paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.PaymentMethods.Lookup(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.payment_methods.lookup("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->lookup("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.lookup(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.paymentMethods().lookup("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.LookupAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
Responsejson
{
  "payment_method": {
    "active": true,
    "created_at": "2026-08-30T13:00:00Z",
    "customer_id": "cu_a1b2c3d4e5",
    "fingerprint": "ifp_v1_app_customer",
    "id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
    "mobile_money": {
      "account_number": "****7831",
      "last4": "7831",
      "network": "mtn"
    },
    "type": "mobile_money"
  }
}

Update a payment method POST /payment_methods/update

Patch mutable metadata or state without replacing the underlying payment instrument. Omitted fields remain unchanged.

Request attributes

TypeScript SDK requestUpdatePaymentMethodRequestv15.0.0
Provide at least one change in addition to paymentMethodId. An archived method must be unarchived before you can change anything else. Unarchiving does not reactivate it.

Prefer the dedicated lifecycle operations below when you are changing only state. They make intent clearer and reduce accidental combinations.

Request

POST/payment_methods/update
cURLbash
curl https://api.inttegro.com/payment_methods/update \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: update-wallet-owner-001" \
-d '{
"custom_data": {
  "legacy_note": null,
  "segment": "vip"
},
"owner": {
  "address": {
    "line1": "1 High Street",
    "region": "Greater Accra"
  },
  "name": "Jane Mensah"
},
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.paymentMethods.update({
  customData: {
    legacy_note: null,
    segment: "vip",
  },
  owner: {
    address: {
      line1: "1 High Street",
      region: "Greater Accra",
    },
    name: "Jane Mensah",
  },
  paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/customdata"
  "github.com/inttegro/inttegro-sdk-go/v14/paymentmethod"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := paymentmethod.UpdateParams{
    CustomData: func() *customdata.Patch { value := customdata.NewPatch(); if err := value.Unset("legacy_note"); err != nil { panic(err) }; if err := value.Set("segment", "vip"); err != nil { panic(err) }; return value }(),
    Owner: &paymentmethod.UpdateOwner{
      Address: &paymentmethod.UpdateAddress{
        Line1: "1 High Street",
        Region: "Greater Accra",
      },
      Name: "Jane Mensah",
    },
    PaymentMethodID: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
  }
  result, err := client.PaymentMethods.Update(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.payment_methods.update(inttegro.payment_method.UpdateRequest(
  custom_data=inttegro.CustomData({
    "legacy_note": None,
    "segment": "vip",
  }),
  owner=inttegro.payment_method.UpdateRequestOwner(
    address=inttegro.payment_method.UpdateRequestOwnerAddress(
      line1="1 High Street",
      region="Greater Accra",
    ),
    name="Jane Mensah",
  ),
  payment_method_id="pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$request = new \Inttegro\PaymentMethod\UpdateRequest(
  paymentMethodId: 'pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D',
  customData: new \Inttegro\CustomDataPatch([
    'legacy_note' => null,
    'segment' => 'vip',
  ]),
  owner: new \Inttegro\PaymentMethod\UpdateRequestOwner(
    name: 'Jane Mensah',
    address: new \Inttegro\PaymentMethod\UpdateRequestOwnerAddress(
      line1: '1 High Street',
      region: 'Greater Accra',
    ),
  ),
);
$result = $client->paymentMethods->update($request);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
request = Inttegro::PaymentMethod::UpdateRequest.new(
  payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
  custom_data: Inttegro::CustomDataPatch.new({
    legacy_note: nil,
    segment: "vip",
  }),
  owner: Inttegro::PaymentMethod::UpdateRequestOwner.new(
    name: "Jane Mensah",
    address: Inttegro::PaymentMethod::UpdateRequestOwnerAddress.new(
      line1: "1 High Street",
      region: "Greater Accra",
    ),
  ),
)
result = client.payment_methods.update(request)
Javajava
import com.inttegro.Client;
import com.inttegro.paymentmethods.UpdatePaymentMethodParams;
import com.inttegro.CustomDataPatch;
import com.inttegro.paymentmethods.PaymentMethodOwner;
import com.inttegro.paymentmethods.PaymentMethodOwnerAddress;
import com.inttegro.RequestOptions;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = UpdatePaymentMethodParams.builder()
      .customData(new CustomDataPatch()
          .unset("legacy_note")
          .set("segment", "vip"))
      .owner(PaymentMethodOwner.builder()
          .address(PaymentMethodOwnerAddress.builder()
              .line1("1 High Street")
              .region("Greater Accra")
              .build())
          .name("Jane Mensah")
          .build())
      .paymentMethodId("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
      .build();
    var result = client.paymentMethods().update(params, RequestOptions.withIdempotencyKey("update-wallet-owner-001"));
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.UpdateAsync(new PaymentMethodUpdateRequest {
  CustomData = new Inttegro.CustomDataPatch()
    .Unset("legacy_note")
    .Set("segment", "vip"),
  Owner = new PaymentMethodOwnerInput {
    Address = new PaymentMethodOwnerAddress {
      Line1 = "1 High Street",
      Region = "Greater Accra",
    },
    Name = "Jane Mensah",
  },
  PaymentMethodId = "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
});
Responsejson
{
  "payment_method": {
    "active": true,
    "created_at": "2026-08-30T13:00:00Z",
    "customer_id": "cu_a1b2c3d4e5",
    "custom_data": {
      "segment": "vip"
    },
    "fingerprint": "ifp_v1_app_customer",
    "id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
    "owner": {
      "address": {
        "country": "GH",
        "line_1": "1 High Street",
        "region": "Greater Accra"
      },
      "name": "Jane Mensah"
    },
    "type": "mobile_money"
  }
}

Activate a payment method POST /payment_methods/activate

Make an inactive payment method available for reuse. An archived method must be unarchived first; a method that is already active cannot be activated again.

Request attributes

TypeScript SDK requestPaymentMethodActionRequestv15.0.0

Response

The response is a paymentMethod envelope with paymentMethod.active set to true and no paymentMethod.archivedAt.

Request

POST/payment_methods/activate
cURLbash
curl https://api.inttegro.com/payment_methods/activate \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: activate-wallet-001" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.paymentMethods.activate({
  paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.PaymentMethods.Activate(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.payment_methods.activate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->activate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.activate(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.paymentMethods().activate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.ActivateAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");

Deactivate a payment method POST /payment_methods/disactivate

Temporarily prevent a payment method from being reused without archiving it. The method can still be retrieved and updated, then activated again when the customer wants to use it. A method that is already inactive cannot be deactivated again.

Request attributes

TypeScript SDK requestPaymentMethodActionRequestv15.0.0

Response

The response is a paymentMethod envelope with paymentMethod.active set to false.

Request

POST/payment_methods/disactivate
cURLbash
curl https://api.inttegro.com/payment_methods/disactivate \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: deactivate-wallet-001" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.paymentMethods.disactivate({
  paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.PaymentMethods.Disactivate(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.payment_methods.disactivate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->disactivate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.disactivate(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.paymentMethods().disactivate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.DisactivateAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");

Archive a payment method POST /payment_methods/archive

Archive a payment method when the customer no longer wants it offered. Archiving sets active to false and records archivedAt. An archived method cannot be archived again.

Request attributes

TypeScript SDK requestPaymentMethodActionRequestv15.0.0

Response

The response is a paymentMethod envelope with active set to false and a populated archivedAt timestamp.

Request

POST/payment_methods/archive
cURLbash
curl https://api.inttegro.com/payment_methods/archive \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: archive-wallet-001" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.paymentMethods.archive({
  paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.PaymentMethods.Archive(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.payment_methods.archive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->archive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.archive(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.paymentMethods().archive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.ArchiveAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");

Unarchive a payment method POST /payment_methods/unarchive

Restore an archived payment method so it can be updated again. Unarchiving clears archivedAt but leaves active set to false; call Activate a payment method separately before offering it to the customer. A method that is not archived cannot be unarchived.

Request attributes

TypeScript SDK requestPaymentMethodActionRequestv15.0.0

Response

The response is a paymentMethod envelope with active set to false and no archivedAt.

Request

POST/payment_methods/unarchive
cURLbash
curl https://api.inttegro.com/payment_methods/unarchive \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: unarchive-wallet-001" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.paymentMethods.unarchive({
  paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.PaymentMethods.Unarchive(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.payment_methods.unarchive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->unarchive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.unarchive(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.paymentMethods().unarchive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.UnarchiveAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");

Page through payment methods POST /payment_methods/page

Browse saved payment methods, optionally limiting the results to one customer. The API does not guarantee newest-first ordering.

Request attributes

TypeScript SDK requestPagePaymentMethodsRequestv15.0.0
The response contains number, paymentMethods, and size. size is the number of payment methods returned. Increase pageNumber to request the next page, up to page 10.

Request

POST/payment_methods/page
cURLbash
curl https://api.inttegro.com/payment_methods/page \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "cu_a1b2c3d4e5",
"page_number": 1,
"page_size": 50
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.paymentMethods.page({
  customerId: "cu_a1b2c3d4e5",
  pageNumber: 1,
  pageSize: 50,
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/paymentmethod"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := paymentmethod.PageParams{
    CustomerID: "cu_a1b2c3d4e5",
    PageNumber: 1,
    PageSize: 50,
  }
  result, err := client.PaymentMethods.Page(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.payment_methods.page(inttegro.payment_method.PageRequest(
  customer_id="cu_a1b2c3d4e5",
  page_number=1,
  page_size=50,
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->page([
  'customer_id' => 'cu_a1b2c3d4e5',
  'page_number' => 1,
  'page_size' => 50,
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.page(
  customer_id: "cu_a1b2c3d4e5",
  page_number: 1,
  page_size: 50
)
Javajava
import com.inttegro.Client;
import com.inttegro.paymentmethods.PagePaymentMethodsParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = PagePaymentMethodsParams.builder()
      .customerId("cu_a1b2c3d4e5")
      .pageNumber(1)
      .pageSize(50)
      .build();
    var result = client.paymentMethods().page(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.PageAsync(new PaymentMethodPageRequest {
  CustomerId = "cu_a1b2c3d4e5",
  PageNumber = 1,
  PageSize = 50,
});
Responsejson
{
  "page": {
    "number": 1,
    "payment_methods": [
      {
        "active": true,
        "created_at": "2026-08-30T13:00:00Z",
        "customer_id": "cu_a1b2c3d4e5",
        "fingerprint": "ifp_v1_app_customer",
        "id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
        "mobile_money": {
          "account_number": "****7831",
          "last4": "7831",
          "network": "mtn"
        },
        "type": "mobile_money"
      }
    ],
    "size": 1
  }
}

Payment method settings POST /payment_methods/settings

See which payment methods your account accepts and whether each one requires customer confirmation. Send an empty JSON object. The response can contain bankAccount, card, and mobileMoney entries.Each entry has required mobileMoney.confirmsUse and mobileMoney.enabled booleans. mobileMoney.type, mobileMoney.name, and mobileMoney.description are included when configured. When mobileMoney.confirmsUse is true, the payment flow should require customer confirmation before completing use of that payment type; it is not the same as the method’s verification state.

New accounts enable recognized payment types and require confirmation by default, unless their configuration has been changed. See Understand payment method settings for how these settings affect checkout.

Request

POST/payment_methods/settings
cURLbash
curl https://api.inttegro.com/payment_methods/settings \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.paymentMethods.settings()
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.PaymentMethods.Settings(ctx)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.payment_methods.settings()
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->settings();
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.settings
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.paymentMethods().settings();
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.SettingsAsync();
Responsejson
{
  "settings": {
    "bank_account": {
      "confirms_use": true,
      "enabled": true,
      "type": "bank_account"
    },
    "card": {
      "confirms_use": true,
      "enabled": true,
      "type": "card"
    },
    "mobile_money": {
      "confirms_use": true,
      "enabled": true,
      "type": "mobile_money"
    }
  }
}

Type to search…

↑↓ navigate↵ selectEsc close