<commit_before><?php
namespace Omise\Payment\Gateway\Request;

use Magento\Payment\Gateway\Helper\SubjectReader;
use Magento\Payment\Gateway\Request\BuilderInterface;
use Omise\Payment\Observer\OmiseDataAssignObserver;

class PaymentDataBuilder implements BuilderInterface
{

    public function build(array $buildSubject)
    {
        $payment = SubjectReader::readPayment($buildSubject)->getPayment();

        return [
            'omise_card_token' => $payment->getAdditionalInformation(OmiseDataAssignObserver::OMISE_CARD_TOKEN)
        ];
    }
}<commit_msg>Attach the amount and currency params at the PaymentDataBuilder class.<commit_after><?php
namespace Omise\Payment\Gateway\Request;

use Magento\Payment\Gateway\Helper\SubjectReader;
use Magento\Payment\Gateway\Request\BuilderInterface;
use Omise\Payment\Helper\OmiseHelper;
use Omise\Payment\Observer\OmiseDataAssignObserver;

class PaymentDataBuilder implements BuilderInterface
{
    /**
     * @var string
     */
    const OMISE_TOKEN = 'omise_card_token';

    /**
     * @var string
     */
    const AMOUNT = 'amount';

    /**
     * @var string
     */
    const CURRENCY = 'currency';

    /**
     * @param \Omise\Payment\Helper\OmiseHelper $omiseHelper
     */
    public function __construct(OmiseHelper $omiseHelper)
    {
        $this->omiseHelper = $omiseHelper;
    }

    /**
     * @param  array $buildSubject
     *
     * @return array
     */
    public function build(array $buildSubject)
    {
        $payment = SubjectReader::readPayment($buildSubject);
        $method  = $payment->getPayment();
        $order   = $payment->getOrder();

        return [
            self::AMOUNT      => $this->omiseHelper->omiseAmountFormat($order->getCurrencyCode(), $order->getGrandTotalAmount()),
            self::CURRENCY    => $order->getCurrencyCode(),
            self::OMISE_TOKEN => $method->getAdditionalInformation(OmiseDataAssignObserver::OMISE_CARD_TOKEN)
        ];
    }
}
{'fraction_non_alphanumeric': 0.11648016276703968, 'fraction_numerical': 0.0, 'mean_word_length': 3.248380129589633, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6883573', 'n_tokens_mistral': 571, 'n_tokens_neox': 566, 'n_words': 93}