Skip to content

Error handling code #9

@webprogrammierer

Description

@webprogrammierer

I need simple error handling code for the follwing files (SampleCartDemo/OneTimePayments):

index.php
SetPaymentDetails.php
ConfirmPaymentAndAuthorize.php

e.g. here:

            onError: function (error) {
                // something bad happened
            }

The error code and the error text should be shown to the user and should be written to a file.

The user should be able to restart the pay process.

The AuthorizeResult should be examined and if there an AuthorizationStatus that tells us, that the payment was not successfull collectet, the user should not get his ordered goods.

So where I can find example code for all this error handling?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions