Skip to content

Error handling code #9

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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