# Custom purchase examples

### Configure

```php
<?php
namespace Acme\PaymentBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Payum\Core\Model\ArrayObject;

/**
 * @ORM\Table
 * @ORM\Entity
 */
class PaymentDetails extends ArrayObject
{
    /**
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     *
     * @var integer $id
     */
    protected $id;
}
```

```yml
#app/config/config.yml

payum:
    storages:
        Acme\PaymentBundle\Entity\PaymentDetails: { doctrine: orm }
```

-**Note**: You should use commented path if you install payum/payum package.-

* [Paypal express checkout](/payum/symfony/custom-purchase-examples-1/paypal-express-checkout.md).
* [Paypal pro checkout](/payum/symfony/custom-purchase-examples-1/paypal-pro-checkout.md).
* [Payex](/payum/symfony/custom-purchase-examples-1/payex.md).
* [Authorize.Net AIM](/payum/symfony/custom-purchase-examples-1/authorize-net-aim.md).
* [Be2Bill credit card](/payum/symfony/custom-purchase-examples-1/be2bill.md).
* [Be2Bill onsite](/payum/symfony/custom-purchase-examples-1/be2bill-onsite.md).
* [Klarna Checkout](/payum/symfony/custom-purchase-examples-1/klarna-checkout.md).
* [Klarna Invoice](/payum/symfony/custom-purchase-examples-1/klarna-invoice.md).
* [Stripe.Js](/payum/symfony/custom-purchase-examples-1/stripe-js.md).
* [Stripe Checkout](/payum/symfony/custom-purchase-examples-1/stripe-checkout.md).
* [Stripe Direct (via omnipay)](/payum/symfony/custom-purchase-examples-1/stripe-via-omnipay.md).
* [Paypal express checkout (via omnipay)](/payum/symfony/custom-purchase-examples-1/paypal-via-omnipay.md).
* [JMS payment plugins](/payum/jms-payment-bridge/get-it-started.md).

***

### Supporting Payum

Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:

* [Become a sponsor](https://github.com/sponsors/Payum)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://payum.gitbook.io/payum/symfony/custom-purchase-examples.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
