wip trying to create better options to include scripts with attributes
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
|
||||
//import { resultMessage } from './result_message.js';
|
||||
import { resultMessage } from './result_message.js';
|
||||
import { PLGNTLS_fetch } from '../../utils/plgntls_fetch.js';
|
||||
|
||||
/**
|
||||
* @see https://developer.paypal.com/docs/checkout/standard/integrate/#link-integratebackend
|
||||
*/
|
||||
//export async function onApprove(data, actions) {
|
||||
async function onApprove(data, actions) {
|
||||
//async function onApprove(data, actions) {
|
||||
export async function onApprove(data, actions) {
|
||||
try {
|
||||
const fetch_approve_url = PLGNTLS_data.fetch_url + "/fipf_plugin/api/v1/orders/" + data.orderID + "/capture";
|
||||
console.log("fetch_approve_url:", fetch_approve_url);
|
||||
|
||||
Reference in New Issue
Block a user