Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Add support to complete 3DS 2 transactions #28

Closed
victor-paddle opened this issue Jul 9, 2019 · 3 comments
Closed

Add support to complete 3DS 2 transactions #28

victor-paddle opened this issue Jul 9, 2019 · 3 comments

Comments

@victor-paddle
Copy link

A new endpoint transactions/{token}/complete has been added to be able to complete a
3DS 2 transaction (https://docs.spreedly.com/reference/api/v1/transactions/). The SDK cannot reach that endpoint right now so a new method like the one below should be added to src/Transaction.php

    /**
     * Can be used to Completes a 3DS 2 transaction in the device fingerprint stage
     * See docs for more information.
     *
     * <code>
     *		// Completes a 3DS 2 transaction in the device fingerprint stage.
     *		Spreedly::transaction($transactionToken)->complete();
     * </code>
     *
     *
     * @return mixed
     *
     * @throws Exceptions\MissingTransactionTokenException
     */
    public function complete()
    {
        if (!$this->transactionToken) {
            throw new Exceptions\MissingTransactionTokenException();
        }

        return $this->client->post('v1/transactions/'.$this->transactionToken.'/complete.json');
    }
@tuurbo tuurbo closed this as completed in fed3af5 Jul 9, 2019
@tuurbo
Copy link
Owner

tuurbo commented Jul 9, 2019

Thanks :)

@victor-paddle
Copy link
Author

victor-paddle commented Jul 23, 2019

Thanks, is it possible to tag the release (ie: 2.3.3), please? 😄

@tuurbo
Copy link
Owner

tuurbo commented Jul 23, 2019

Sorry about that, for some reason the tag wasn't pushed with the commit. Fixed now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants