> For the complete documentation index, see [llms.txt](https://docs.guestlogix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guestlogix.io/traveler/mobile-sdks/stripe-payment-sdk/processing-an-order.md).

# Processing an Order

Finally when the user has reviewed the `Order` and entered in their `Payment` information, you may process the order using the following method.

Currently the only acceptable payment strategy is through Stripe and you can use our StripePaymentProvider SDK together with the UI SDK to collect and process payment info.

This call will asynchronously return a `Receipt` which you can show to the user as a successful confirmation of the order.

{% tabs %}
{% tab title="iOS" %}

```swift
Traveler.processOrder(order, payment: payment) { (receipt, order) in 

}
```

Alternatively you can use the delegate pattern

```swift
Traveler.processOrder(order, payment: payment, delegate: self)
```

```swift
extension MyViewController: OrderProcessDelegate {
    func order(_ order: Order, didSucceedWithReceipt receipt: Receipt) {
    
    }
    
    func order(_ order: Order, didFailWithError error: Error) {
    
    }
}
```

{% endtab %}

{% tab title="Android" %}

```java
Traveler.processOrder(order, payment, new ProcessOrderCallback() {
    @Override
    void onOrderProcessSuccess(Receipt receipt) {
    
    }
    
    @Override
    void onOrderProcessError(Error error) {
    
    }
});

```

{% endtab %}
{% endtabs %}
