Skip to content

Refund with DCC data #135

@PapaLamine725

Description

@PapaLamine725

I would like to know how to add the DCC data from an initial transaction to a refund request. I am using the PHP SDK.

I have created the dccRateData object and added it to the request, but it is not working.

$dccRateData = new DccRateData();
$dccRateData->dccProcessor = "fexco";
$dccRateData->dccRateType = "R";
$dccRateData->cardHolderCurrency = "HKD";
$dccRateData->cardHolderRate = "9.3173";
$dccRateData->cardHolderAmount = "18625";

try {
// send the settle request, we must specify the amount and currency
$response = $transaction->refund(19.99)
->withCurrency("EUR")
->withDccRateData($dccRateData)
->execute();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions