# Namespace: payment

## payment

This class provides the methods to access the API that will allow you to create your own payment experience on your website. From basic to advanced configurations, you control the whole experience. Payment class

Source:
  - resources/payment.js, line 8

### Members

#### (static) oldSearch

Search payment: Use v0 -> /collections

Source:
  - resources/payment.js, line 70

### Methods

#### (static) cancel(id, config, callback) → {*}

Cancel payment

##### Parameters:

Name | Type | Description
--- | --- | ---
`id` |  |
`config` |  |
`callback` |  |

Source:
  - resources/payment.js, line 79

##### Returns:

Type
  *

#### (static) capture(id, config, callback) → {*}

Capture payment

##### Parameters:

Name | Type | Description
--- | --- | ---
`id` |  |
`config` |  |
`callback` |  |

Source:
  - resources/payment.js, line 96

##### Returns:

Type
  *

#### (static) capturePartial(captureData, config, callback) → {Thenable.<U>|*|Object|*}

Capture partial payment

##### Parameters:

Name | Type | Description
--- | --- | ---
`captureData` |  |
`config` |  |
`callback` |  |

Source:
  - resources/payment.js, line 111

##### Returns:

Type
  Thenable.<U> | * | Object | *

#### (static) create()

Create a payment Click here for more infos

Source:
  - resources/payment.js, line 19

#### (static) get()

Get a payment by ID Click here for more infos

Source:
  - resources/payment.js, line 43

#### (static) refund(id, config, callback) → {*}

Refund payment

##### Parameters:

Name | Type | Description
--- | --- | ---
`id` |  |
`config` |  |
`callback` |  |

Source:
  - resources/payment.js, line 126

##### Returns:

Type
  *

#### (static) refundPartial(refund, config, callback) → {Thenable.<U>|*|Object|*}

Refund partial payment

##### Parameters:

Name | Type | Description
--- | --- | ---
`refund` |  |
`config` |  |
`callback` |  |

Source:
  - resources/payment.js, line 141

##### Returns:

Type
  Thenable.<U> | * | Object | *

#### (static) search()

Search payments Click here for more infos

Source:
  - resources/payment.js, line 56

#### (static) update()

Update a payment Click here for more infos

Source:
  - resources/payment.js, line 32