> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# settleCoinbaseOnrampPurchase

> Confirms server-authoritative settlement of a Coinbase headless Apple Pay order

async

Confirms server-authoritative settlement of a Coinbase headless Apple Pay order when the user returns from the payment sheet.

Copy method signature

### Returns

[`{ status: OnRampPurchaseStatus }`](https://docs.getpara.com/v3/references/types/onramppurchasestatus)

The verified order status (`INITIATED`, `FINISHED`, or `CANCELLED`).

## Usage

Call this method when the user returns from Coinbase's Apple Pay payment page to verify and record settlement status on the server.

```typescript theme={null}
const { status } = await para.settleCoinbaseOnrampPurchase({
  purchaseId: order.purchaseId,
  walletId: wallet.id,
});
```

```typescript Signature theme={null}
settleCoinbaseOnrampPurchase(params: {
  purchaseId: string;
  walletId?: string;
  externalWalletAddress?: string;
}): Promise<{ status: OnRampPurchaseStatus }>
```

Emits `ONRAMP_TRANSACTION_COMPLETE_V2` when the confirmed status reaches `FINISHED`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.