Skip to content

Commit

Permalink
Merge branch 'main' of github.com:vippsas/deno-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-zijdemans-vipps committed Sep 10, 2024
2 parents b706b31 + 39f82c2 commit 3d33d15
Show file tree
Hide file tree
Showing 51 changed files with 1,645 additions and 5,816 deletions.
54 changes: 0 additions & 54 deletions sample_code/callbackQR_sample.ts

This file was deleted.

49 changes: 0 additions & 49 deletions sample_code/checkout_sample.ts

This file was deleted.

10 changes: 7 additions & 3 deletions sample_code/epayment_sample.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { open } from "https://deno.land/x/open@v0.0.6/index.ts";
import "https://deno.land/std@0.217.0/dotenv/load.ts";
import { Client } from "https://deno.land/x/vipps_mobilepay_sdk@1.2.0/mod.ts";
import "https://deno.land/std@0.224.0/dotenv/load.ts";
import { Client } from "../src/mod.ts";

// First, get your API keys from https://portal.vipps.no/
// Here we assume they are stored in a .env file, see .env.example
Expand Down Expand Up @@ -55,4 +55,8 @@ const reference = payment.data.reference;
console.log("📋 Payment reference:", reference);

// Open the payment redirect URL in the browser
await open(payment.data.redirectUrl);
if (payment.data.redirectUrl) {
await open(payment.data.redirectUrl);
} else {
console.error("😟 Error: Redirect URL is undefined 😟");
}
52 changes: 0 additions & 52 deletions sample_code/login_sample.ts

This file was deleted.

132 changes: 0 additions & 132 deletions sample_code/order_management_sample.ts

This file was deleted.

Loading

0 comments on commit 3d33d15

Please sign in to comment.